摘要:
'use strict'; let name1=Symbol('name'); let name2=Symbol('name'); console.log(name1 name2);//false console.log(Symbol.keyFor(name1));//underfined let 阅读全文
posted @ 2018-04-02 16:38
冲天小肥牛
阅读(95)
评论(0)
推荐(0)
摘要:
实例1: 'use strict'; class User { constructor(name, pwd) { this.name = name; this.pwd = pwd; }; validateName(cb) { let name = this.name; return new Prom 阅读全文
posted @ 2018-04-02 10:45
冲天小肥牛
阅读(124)
评论(0)
推荐(0)
摘要:
'use strict'; //语法塘 class User{ //构造函数 constructor(name,age){ this.name=name; this.age=age; } //静态方法 static getClasName(){ return 'user'; } //构造方法 ch... 阅读全文
posted @ 2018-04-02 08:33
冲天小肥牛
阅读(117)
评论(0)
推荐(0)

浙公网安备 33010602011771号