摘要: 一、ES5中的近类结构 //ES5中的近类结构 function Person(name) { this.name = name; } Person.prototype.sayname = function(){ console.log(this.name); } var person = new 阅读全文
posted @ 2020-03-10 22:50 代码铲屎官 阅读(250) 评论(0) 推荐(0) 编辑