标签:log als sig 负数 undefined 计算 运算 sign 注意
console.log(Number.isInteger(1.0))//true
console.log(Number.isInteger(1))//true
console.log(Number.isInteger("1"))//false
console.log(Number.isInteger("1.1"))//false
console.log(Math.sign(1))//1
console.log(Math.sign(-1))//-1
console.log(Math.sign(0))//0
console.log(Math.sign(-0))//0
console.log(Math.sign(NaN))//NaN
console.log(Math.sign(undefined))//NaN
console.log(Math.sign(null))//0
console.log(Math.cbrt(8))//2
console.log(Math.hypot(4,3))//25再开方结果为5
console.log(2**2) //4
console.log(2**3) //8
标签:log als sig 负数 undefined 计算 运算 sign 注意
原文地址:http://www.cnblogs.com/xiao-he-shang/p/7294489.html