JS:undefined number
undefined数据类型:未定义属性
undefined 表示不含值
<script> var t1=""; var t2; if (t1===undefined) { alert("t1 is undefined"); } if (t2===undefined) { alert("t2 is undefined"); } </script>
打印结果:t2 is undefined
number数据类型:数字
<script>
var w=12.00 //12
var k=12 //12 var x=12.33 //12.33 var y=123e5; // 12300000 var z=123e-5; // 0.00123
</script>