sdfsfsdfsdf
sdfsdfssdfsd
sdfsdfsdfsdf
sdfsdfsdf
1 var n1 = [10,10.5,5e2,5E2,5e-2]; //整数,浮点数,科学计数法e不区分大小写 2 n1.push(0xb); //16进制的11 x不区分大小写 3 n1.push(011); //8进制的9 4 n1.push(Infinity); //正无穷大,也可以使用Number.POSITIVE_INFINITY 5 n1.push(NaN); //非数字。一个不等于自己的变量,它的值一定是NaN 6 for (var i=0;i<n1.length;i++) { 7 var curItem = n1[i]; 8 ret +="<br/>"+"数值:"+curItem+" typeof "+typeof curItem; 9 curItem = null; 10 }
sdfsdfsd
时间: 2024-10-26 20:03:24