摘要:
一、类 1.格式 class Person{ // 构造方法,调用new,自动执行 constructor(name,age){ this.name=name; this.age=age; } // 等价于 Person.prototype.showname showname(){ console. 阅读全文
posted @ 2018-08-27 12:59
yuesu
阅读(225)
评论(0)
推荐(0)
摘要:
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 阅读全文
posted @ 2018-08-27 10:25
yuesu
阅读(185)
评论(0)
推荐(0)
浙公网安备 33010602011771号