日期:2014-05-16 浏览次数:20395 次
<!DOCTYPE html>结果:
<html>
<body>
<script>
var test1 = new Number();
document.write( typeof( test1 ) + "<br />" );
document.write( test1 + "<br />" );
var test2 = new Number( 1 );
document.write( typeof( test2 ) + "<br />" );
document.write( test2 + "<br />" );
var test3 = 1
document.write( typeof( test3 ) + "<br />" );
document.write( test3 + "<br />" );
</script>
</body>
</html>