56

熟悉 Vue ?你能解释这个死循环吗?

 5 years ago
source link: https://juejin.im/post/5b8a18f36fb9a019bf46bd65
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
====== 更新线 ===== 评论区有了相关讨论,贴更详细一点的解释出来 ====== 更新线 ===== 循环出现的条件: key="Math.random()" 子组件在 created 中输出计算属性并改变 data 与 Vue watcher

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK