摘要:
一、类 1.格式 class Person{ // 构造方法,调用new,自动执行 constructor(name,age){ this.name=name; this.age=age; } // 等价于 Person.prototype.showname showname(){ console. 阅读全文
摘要:
1.定义模块: export export const a=12 export {a,b,c} 别名 export {a as aaa,b as bbb,c as ccc} ->使用 import {aaa,bbb,ccc} from './modules/1.js' 2.使用模块: import 阅读全文