摘要:
Number.isFinite(), Number.isNaN() ES6 在 Number 对象上,新提供了 Number.isFinite() 和 Number.isNaN() 两个方法。Number.isFinite() 用来检查一个数值是否为有限的(finite),即不是 Infinity 阅读全文
posted @ 2021-04-24 12:16
铁打的代码流水的bug
阅读(52)
评论(0)
推荐(0)
摘要:
Math.trunc() Math.trunc 方法用于去除一个数的小数部分,返回整数部分。 1. Math.trunc(4.1) // 4 2. Math.trunc(4.9) // 4 3. Math.trunc(-4.1) // -4 4. Math.trunc(-4.9) // -4 5. 阅读全文
posted @ 2021-04-24 12:06
铁打的代码流水的bug
阅读(66)
评论(0)
推荐(0)

浙公网安备 33010602011771号