摘要: Array.prototype.values = function(){ let i = 0; let self = this return { next(){ const done = i>= self.length const value = done? undefined : self[i++ 阅读全文
posted @ 2019-12-26 23:41 问问大将军 阅读(144) 评论(0) 推荐(0)
摘要: //基础语法function People(name,email){ name, email } class User{ constructor(name,email){ this.name = name; this.email = email; } getinfo(){ console.log(t 阅读全文
posted @ 2019-12-26 22:35 问问大将军 阅读(354) 评论(0) 推荐(0)