摘要: 小结:class 本质是构造函数,用于创建对象的。 ES6 之前的写法 // 构造函数用于创建对象实例 function Point1(x, y) { // 对象的属性 this.x = x; this.y = y; this.state = { msg: 111 }; } // 对象的方法 Poi 阅读全文
posted @ 2020-08-18 10:54 MarkLewis 阅读(122) 评论(0) 推荐(0) 编辑