摘要: 获取对象长度 Object.prototype.length = function len() { let count = 0; for(let i in this) { count++; } return count 1;// 1的原因是对象中默认包含__proto__属性,获取对象真实的长度需要 阅读全文
posted @ 2017-01-17 11:56 凯斯keith 阅读(237) 评论(0) 推荐(0) 编辑