摘要: function Person(name) { //给构造函数添加了参数 this.name = name; this.sex = "male"; this.say = function() { console.log(this.name); } } Person.prototype.age = 2 阅读全文
posted @ 2021-03-09 10:17 zjxgdq 阅读(51) 评论(0) 推荐(0) 编辑