阿东
阿东
>```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) > }) > } >...
http://www.baidu.com
 这个图有点问题吧,new Parent2()的constructor不是Child2,而是Parent2 
公司:万家云 链接:https://login.365hrbp.com 项目说明,前端使用iview重构