摘要: // 用generator函数,返回[key,value] Object.prototype[Symbol.iterator] = function* iterEntries() { let keys = Object.keys(this); for (let i = 0; i < keys.len 阅读全文
posted @ 2020-10-02 13:32 樱风凛 阅读(1224) 评论(0) 推荐(0) 编辑