相关文章推荐
睿智的甜瓜  ·  pandas ...·  1 周前    · 
讲道义的毛豆  ·  vue3 ...·  5 天前    · 
高大的消防车  ·  vue ...·  5 天前    · 
纯真的石榴  ·  Spring ...·  1 月前    · 
难过的打火机  ·  Filtering collections ...·  1 月前    · 
星星上的斑马  ·  spring - Caused by: ...·  1 年前    · 

v-for重复渲染大量数据性能问题 #3095

Closed
@chenzhiguo

Description

你好,一直在用vue,目前遇到性能问题。重复渲染递增数据的时候。比如页面用for循环输出logList[],页面定时循环请求新的数据,量很大,次数很多,请求成功后,数据结果合并。每次都会执行
demoVue.logList = demoVue.logList.concat(response.logList);
这样,页面会全部重新渲染logList这个数组吧?
但是现在发现性能有问题,请问有什么好的优化方法吗?