Fan Zhang
Fan Zhang
Remove the "-w" at the build command( "build": "rollup -c -w",) in the package.json. -w means --watch.
你希望在哪里加注释?因为很多算法 一两句话是 说不太清的。
具体一些,我有空还加了 | | 张凡 邮箱:[email protected] | 签名由 网易邮箱大师 定制 在2019年11月21日 22:51,KL-Kim 写道: 最好看起来比较难懂的地方都可以加的,这样比较好理解 — You are receiving this because you commented. Reply to this email directly, view it on GitHub,...
> 1. 代码中有一地方应该是写错了 > 首先非常感谢发现问题。我看了下之前确实写的问题不少。漏掉了错误的处理,也没有处理在promise同步的调用resolve的情况。 But 你的版本里也有点问题 1 你的case中 我理解promise 只能支持 resolve或者reject。不支持同时调用两个。 2 假如promise 中没有调用settimeout,是一个同步的,代码还是处理不了。 ```js new MyPromise((resolve, reject) => { reject(1); }) .then( res => {}, error => {...
``` function Test(){ } let bindTest = Test.bind({}); let a = new bindTest() //此时 this instanceof bound 是true。 ```