David Zhang

Results 15 comments of David Zhang

遇到跟楼上同样的情况,楼主上面时候能解决一下? 另外, 标签替换的功能不生效吖。~

```JS let a = new Set([1, 2, 3]) let b = new Set([2, 3, 4]) const intersectByEs6 = new Set([...a].filter(x => b.has(x))) // 2, 3 const intersectByEs5 = [...a].filter(n =>...

> you could add this in > .video-js .vjs-big-play-button { > top: 50%; > left: 50%; > margin-left: -1.5em; > margin-top: -1em > } His promblem is not this

有个问题请教下,如你所做,首层是进行了深拷贝的运算,为什么你在定义这个概念的时候却叫做首层浅拷贝?

用ES6方法改写如下 ```JS deepClone: source => { let clone = Object.assign({}, source); Object.keys(clone).forEach( key => (clone[key] = typeof source[key] === 'object' ? deepClone(source[key]) : source[key]) ); return clone; } ```

@phonet 试试用下函数节流,不要让滚动快速执行事件,