摘要: 构造函数与原型 构造函数模式 最简单的构造函数: function Person(name, age, job) { this.name = name; this.age = age; this.job = job; this.sayName = function() { console.log(t 阅读全文
posted @ 2020-02-28 22:40 爱喝可乐的咖啡 阅读(147) 评论(0) 推荐(0) 编辑