ES6中的类(Class)的写法

1.传统ES5中的class用法javascript //ES5的对应写法 (function(){ //定义类、构造函数 function User(name,age){ this.name=name; this.age=age; }
相关文章
相关标签/搜索