W3School TIY
脚 本 学 堂 www.jbxue.com
编辑您的代码:
<html> <body> <script type="text/javascript"> document.write(parseInt("10") + "<br />") document.write(parseInt("19",10) + "<br />") document.write(parseInt("11",2) + "<br />") document.write(parseInt("17",8) + "<br />") document.write(parseInt("1f",16) + "<br />") document.write(parseInt("010") + "<br />") document.write(parseInt("He was 40") + "<br />") </script> </body> </html>
查看结果: