在Vue2的项目升级Vue3时,Vue.set(person, 'name', 'xxx') 需要用什么替代
官网中这句话怎么理解:These global APIs in Vue 2.x are affected by this change:
Vue.set(only in compat builds)
在Vue2的项目升级Vue3时,Vue.set(person, 'name', 'xxx') 需要用什么替代
官网中这句话怎么理解:These global APIs in Vue 2.x are affected by this change:
Vue.set (only in compat builds)11 回答1.3k 阅读
3 回答973 阅读✓ 已解决
2 回答957 阅读✓ 已解决
3 回答944 阅读✓ 已解决
2 回答653 阅读
3 回答992 阅读
3 回答972 阅读
没有替代的, vue3新增对象属性,vue也能侦测到,不用额外使用set方法,直接正常赋值就可以