摘要: 先回顾一下上一讲的原型。 // 原型 function Person(name) { this.name = name; } Person.prototype.sayName = function() { alert(this.name) } var p1 = new Person('嘿嘿'); c 阅读全文
posted @ 2018-01-18 20:17 webLion200 阅读(158) 评论(0) 推荐(0)