欢迎加入QQ群一起探讨交流:581902292
摘要: 首先,ES6 的 class 属于一种“语法糖”,所以只是写法更加优雅,更加像面对对象的编程,其思想和 ES5 是一致的。 《1》constructor function Point(x, y) { this.x = x; this.y = y; //console.log("初始化自动执行"); 阅读全文
posted @ 2018-10-11 04:00 £AP︶ㄣOL◢◤LO 阅读(242) 评论(0) 推荐(0) 编辑