阿东

Results 16 comments of 阿东

>```js >function union (arr1, arr2) { > return arr1.filter(item => { > return arr2.indexOf(item) > - 1; > }) >} > const a = [1, 2, 2, 1]; > const...

>```js >function LazyMan (name) { > class Man { > constructor (name) { > this._queues = [] > console.log(`Hi I am ${name}`) > Promise.resolve().then(() => { > this.next() > })...

>```js >function sleep(time) { > function* gen () { > yield new Promise((resolve, reject) => { > setTimeout(() => { > resolve() > }, time) > }) > } >...

![image](https://user-images.githubusercontent.com/23614775/56280929-e2f33600-613d-11e9-83e1-ecf8142b0058.png) 这个图有点问题吧,new Parent2()的constructor不是Child2,而是Parent2 ![image](https://user-images.githubusercontent.com/23614775/56280993-0ddd8a00-613e-11e9-811e-7134e73c64e6.png)

公司:万家云 链接:https://login.365hrbp.com 项目说明,前端使用iview重构