-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[vue] 删除数组用delete和Vue.delete有什么区别? #285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
vue
vue
Comments
|
delete:不能触发vue的响应式更新 |
学到了 |
delete:delete 是JavaScript的原生操作符,用于删除对象的属性。
Vue.delete:Vue.delete 是Vue提供的全局方法,专用于在响应式对象(如数组和对象)上删除属性或元素。
在Vue中删除数组元素时应使用 Vue.delete 来确保数组的响应式更新。 |
你发给我的邮件已经收到了~辛苦了~
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[vue] 删除数组用delete和Vue.delete有什么区别?
The text was updated successfully, but these errors were encountered: