var arr = [119.657958,29.108071];
function c(){
var x = ((Math.random()-0.5)/500).toFixed(6);
console.log(x);
return x;
}
let y = c();
console.log(isNaN(y));
console.log(typeof y);
console.log(y+1);
结果为
为什么y既是数字又是字符串呢
jeck猫
相关分类