一个vue在单页面长时间显示会导致浏览器崩溃问题 #9360
yzh1211
started this conversation in
General Discussions
Replies: 1 comment
-
把 vue-devtools 禁用了再试试。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
如题,有一个html页面,这个页面上创建了一个定时器,每5秒钟将对div中的内容进行切换,分别为P标签和Span标签,结构像是这样:
Welcome
欢迎随着时间的增长,这个页面上的节点个数也在不停增长,当然在页面比较简单的时候不会有问题。但当div中的内容比较多的时候(比如v-if修饰的是一个component,而这个component里面的元素个数比较多),会引起页面上的节点上千个增加,在最后导致chrome页面崩溃,具体提示为"哦唷,崩溃了..."
请问有没有帅哥美女知道这个问题该如何解决?
Beta Was this translation helpful? Give feedback.
All reactions