es6 class 了解
摘要:
ES6之class ES5中通常通过构造函数和原型的组合形式来创建对象。在ES6中引入class作为对象模板, Class定义语法 class point{ constructor(x,y){ this.x = x; this.y = y; } toString(){ return '[' + th 阅读全文
posted @ 2017-12-17 16:03 童彪 阅读(135) 评论(0) 推荐(0) 编辑
posted @ 2017-12-17 16:03 童彪 阅读(135) 评论(0) 推荐(0) 编辑