摘要: 构造函数创建对象: function Person() { } var person = new Person(); person.name = 'Kevin'; console.log(person.name) // Kevin Person 就是一个构造函数,我们使用 new 创建了一个实例对象 阅读全文
posted @ 2020-06-29 19:29 小饿爽 阅读(148) 评论(0) 推荐(0)