RandomYang

Results 34 comments of RandomYang

读了您的多篇文章,发现您对很多东西还是有很多额外的思考,表示赞赏。

```js function promiseRace(promises) { return new Promise((res, rej) => { promises.forEach(promise => promise.then(res).catch(rej)); }) } ```

引用代码: ``` var feetToMetres = function(ft) { return ft*12*0.0254 }; var p = new Promise(/*...*/); // 问题行 p.then(feetToMetres) .then(function(metres) { alert(metres); }); ``` 上面的代码“问题行”好像有问题? 不应该是:`var p = Promise.resolve(/*...*/)`么

大家好像不喜欢看ECMA草案。 [call:](https://tc39.es/ecma262/#sec-function.prototype.call) [apply:](https://tc39.es/ecma262/#sec-function.prototype.apply) 可以看到算法步骤中,apply多了`CreateListFromArrayLike`的调用,其他的操作几乎是一样的(甚至apply仍然多了点操作)。从草案的算法描述来看,call性能 > apply性能。

https://user-images.githubusercontent.com/8554143/29658516-b78fe5f0-88ed-11e7-8877-bf904d175bc5.gif 这幅动图的两个不同颜色框为什么不是反向旋转?

@dblodorn Try [this](https://github.com/random-yang/glsl-vue-loader/tree/fix/build-chain) version. May solve your problem.

**到达滑块验证的那一步的时候 自己手动打开的chrome,手动验证可以通过 chromedriver打开的chrome,即便是手动验证也通不过 所以问题其实根本就不在模拟滑块滑动上**