dandanyajin
今天更新博客了吗?
摘要: 当数据超过 Number.MAX_SAFE_INTEGER (2 ^ 53 - 1) 时的计算都是不精确的 例如: Math.pow(2, 53) Math.pow(2, 53) + 1 // true 这个时候就可以使用 BigInt() BigInt(Math.pow(2, 53)) BigIn 阅读全文
posted @ 2022-07-26 11:38 dandanyajin 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 1 const information = { 2 3 name: "花花", 4 age: "32" 5 6 } 1 // 获取对象中所有key 2 Object.keys(information) //["name","age"] 不包含原型链 3 Object.getOwnPropertyNa 阅读全文
posted @ 2022-07-26 11:14 dandanyajin 阅读(14) 评论(0) 推荐(0) 编辑