kezhi wang

Results 9 comments of kezhi wang

That's an amazing tutorial!!!

看到这一章的时候很好奇,为什么computed计算属性不用reactive实现呢: ``` const computedMemoVersion = (getter) => { const reactive = makeReactive({}); effect(() => { reactive.value = getter(); }); return { get value() { return reactive.value; }, }; }; ```...

幻神,请问这道题能不能用RxJS解啊,思路又是怎样的。

> const deb = (fn, delay, immediate) => { > let timer = null > return function() { > const context = this > timer && clearTimeout(timer) > if (immediate)...

> ![image](https://user-images.githubusercontent.com/17745492/56890386-e1196300-6aab-11e9-95f7-3fc66f99112a.png) > > 有没有大佬解答一下,这里传立即执行函数的返回值(函数)和直接传红字部分的函数,有什么区别吗 立即执行函数的作用是在内部函数还没有执行的时候就已经为内部函数绑定好了对应参数的值,如果不用立即函数的话也可以用bind方法 ``` var name = '小明' var fn = function (n){ console.log(`I am eating ${n}`) this.next() }.bind(null, name) 上面的代码实际上是让fn等于下面这个函数: function (){ console.log(`I am eating 小明`)...

根本不能用 就算设置了代理也啥都扫不出来

> ### I found the solution for this problem. > For some reason calling stopBackgroundTimer within a function call in runBackgroundTimer **does not work.** > You need to create another...

Bug原因分析:因为el-table没有传height属性(因为我用css设置成了动态的),导致 ![3f468fdf55e172ac1943e62c65edebe](https://github.com/ElemeFE/element/assets/22064450/6fdffec6-ed69-4e32-8a1b-de96042b49fd) 导致这里if的逻辑判断失败,this.bodyHeight的值为初始化的空对象,进而导致下面的判断为false, ![image](https://github.com/ElemeFE/element/assets/22064450/7fd2eb5c-5a17-4261-9033-fa617bfe6cb7) 进而导致这里this.scrollY为fasle,进而由于以下逻辑导致在滚动的时候th的gutter宽度为0,造成了上述bug ![image](https://github.com/ElemeFE/element/assets/22064450/dbe9f63c-a56b-47a1-8521-52135cedce6a) 建议修复方式:把第一张图里的if判断去掉,这样就能永远根据dom的真实height来判断是否需要此处的gutter,而不是根据用户传没传height来判断

bug复现gif可查看此推特:https://twitter.com/WkZhi/status/1743653498741301358