Open spawpaw opened 5 years ago
@kinghoo5201
@kinghoo5201
看到了,react|vue例子在运行后cpu占用趋于稳定,没超过10%, 而angular例子上一直是超过40% 而且时间越久占用越高
是在重绘吗?? @kinghoo5201
是在重绘吗?? @kinghoo5201
对的,不停的重绘,真的可能是getter引发的,我替换成了@spawpaw提供的demo改写,cpu占用稳定在10%以下。
是在重绘吗?? @kinghoo5201
不停重绘,element一直在闪,domNodes一直在变化
问题描述
在子弹图示例中,使用方法获取属性时会导致dom渲染进入死循环,耗尽cpu(红框框部分是cpu占用)。
毕竟很(wo)多(zi)人(ji)第一次用的时候是参考文档写的,所以文档里面还是不要出现这些问题比较好。
可能的解决方案