摘要: es6实现 1 class _LazyMan { 2 constructor(name) { 3 this.tasks = []; 4 this.sleep = this.sleep.bind(this); 5 this.eat = this.eat.bind(this); 6 this.tasks.push(((name) => { 7 ... 阅读全文
posted @ 2017-01-20 15:06 -小白白白 阅读(475) 评论(0) 推荐(0) 编辑