ES6中的類(Class)的寫法

1.傳統ES5中的class用法javascript //ES5的對應寫法 (function(){ //定義類、構造函數 function User(name,age){ this.name=name; this.age=age; }
相關文章
相關標籤/搜索