cobish

Results 39 comments of cobish

@JChermy me, jd sz, too. 同事呀

有个疑惑,最终代码中不需要将 fBound 的 ``constructor `` 给指回来吗? ``` js fBound.prototype = new fNOP(); ``` 即: ``` js fBound.prototype.constructor = fBound; ```

@mqyqingfeng 谢谢解惑,万分感谢~

``` js console.log(typeof Null); // undefined ``` 的结果应该是 ``undefined``,而不是 ``object`` 吧? ![image](https://user-images.githubusercontent.com/8475099/47404137-b5c15e80-d77e-11e8-950b-8ef5bf5db39a.png) --- 哦是我搞错了,应该是 ``` js console.log(typeof null); // object ```

大大终于更新啦,可喜可贺,消灭零评论。

有两个疑惑,像以下这些赋值给 data 的属性是给谁用的? ``` js data.routerViewDepth = depth data.hook = {} ``` 还有 parent 自带的一些属性是 vue 里自带的吗? ``` js parent._routerViewCache parent._inactive ```

@zjp6049 只想要遍历值,而不需要用到 index 或 key 等的时候 ``` js const arr = ['a', 'b', 'c']; for (let val of arr) { console.log(val); } // "a" // "b" // "c" ```

@eva1963 第三个参数就是额外参数的意思了,你看下面使用到的 ``callback.apply``。

**extend 第一版**中的 ``src`` 变量好像赋值后没用到哦