<script language=javascript>
var decimalNum,hexadecimalNum,octalNum
decimalNum=24
hexadecimalNum=0x24
octalNum=024
document.write("顯示十進(jìn)制數(shù):"+ decimalNum+"<br>")
document.write("顯示十六進(jìn)制數(shù):"+ hexadecimalNum +"<br>")
document.write("顯示八進(jìn)制數(shù):"+ octalNum +"<br>")
</script>
更多信息請(qǐng)查看IT技術(shù)專欄