ES6之class

Class定義語法 class point{ constructor(x,y){ this.x = x; this.y = y; } toString(){ return '[' + this.x + ',' + this.y + "]" ; } } var
相關文章
相關標籤/搜索