kezhi wang
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)...
>  > > 有没有大佬解答一下,这里传立即执行函数的返回值(函数)和直接传红字部分的函数,有什么区别吗 立即执行函数的作用是在内部函数还没有执行的时候就已经为内部函数绑定好了对应参数的值,如果不用立即函数的话也可以用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设置成了动态的),导致  导致这里if的逻辑判断失败,this.bodyHeight的值为初始化的空对象,进而导致下面的判断为false,  进而导致这里this.scrollY为fasle,进而由于以下逻辑导致在滚动的时候th的gutter宽度为0,造成了上述bug  建议修复方式:把第一张图里的if判断去掉,这样就能永远根据dom的真实height来判断是否需要此处的gutter,而不是根据用户传没传height来判断
bug复现gif可查看此推特:https://twitter.com/WkZhi/status/1743653498741301358
Same here, it's even happening with plain js. It seems not related to React itself.