winter_is_comming

Results 6 comments of winter_is_comming

你好,请问下你所说的“也就是你改数据后,先不改 DOM ,过一会,等待当前的 microtask 完成之后再去批处理执行所有改 DOM 的操作。”,这句话里面的“等当前的microtask完成后再去批处理执行所有修改Dom的操作”是什么意思啊?难道修改Dom的操作不就在当前的microtask里面吗?还是说其实是想说等microtask执行完之后才UIrender?

还有个问题,我把文中的jsFiddle里面的代码copy下来试了一下,发现还是有上下晃动的现象发生?链接: http://js.jirengu.com/teyohuwuvu/1/edit?html,js,output

我还想问下,或者的加载是task吗?比如有一个iframe元素,然后在某个时间我们更改了它的src的值,document.querySelector('frame').src = "xxx" Vue.nextTick(function(){let height = document.querySelector('iframe').document.documentElement.scrollHeight}),请问这样的话我们是不是不能获取到height的真正的值?是否因为iframe加载是task需要在以后的某次事件循环中执行,而Vue.nextTick里面的函数在本次事件循环的microtask 就执行了?

> There's > > * https://elm-lang.org/try > * https://ellie-app.com/new > * for entire repos: https://elm-editor.com/ Hi, I've known the website above, but I prefer the repl style , Not (```import...

> Try running it with Node >= 18. Global `fetch` was introduced in Node 18.I I've updated Node to v18.6 but still get the error, maybe the example is just...

你好,请问一下.switchMap(url => Http.get(url)) //