vue3 中,使用 Options API 风格,data 中的值,都会自动添加响应式吗?
是的,官方文档中写了:https://cn.vuejs.org/guide/essentials/reactivity-fundamentals...
Vue 将在创建新组件实例的时候调用此函数,并将函数返回的对象用响应式系统进行包装。
相反,如果使用的是 Composition API, 就需要添加 reactive 这些了
vue3 中,使用 Options API 风格,data 中的值,都会自动添加响应式吗?vue3 中,使用 Options API 风格,data 中的值,都会自动添加响应式吗?vue3 中,使用 Options API 风格,data 中的值,都会自动添加响应式吗?vue3 中,使用 Options API 风格,data 中的值,都会自动添加响应式吗?vue3 中,使用 Options API 风格,data 中的值,都会自动添加响应式吗?vue3 中,使用 Options API 风格,data 中的值,都会自动添加响应式吗?vue3 中,使用 Options API 风格,data 中的值,都会自动添加响应式吗?vue3 中,使用 Options API 风格,data 中的值,都会自动添加响应式吗?vue3 中,使用 Options API 风格,data 中的值,都会自动添加响应式吗?