ES6之class

Class定义语法 class point{ constructor(x,y){ this.x = x; this.y = y; } toString(){ return '[' + this.x + ',' + this.y + "]" ; } } var
相关文章
相关标签/搜索