HJY-xh / plantTrees

每天几个前端小知识📙 2021.2.14 - new Date()
MIT License
22 stars 4 forks source link

[2022-4-9] 如何阻止Vue的响应式系统追踪变化? #557

Open HJY-xh opened 2 years ago

HJY-xh commented 2 years ago

使用Object.freeze(),会阻止修改现有的property,也意味着响应式系统无法再追踪变化。