The built-in $forceUpdate()
method forces a re-render of the Vue application.
Argument | Description |
---|---|
none | Default. The $forceUpdate() method does not accept any arguments. |
Note: In normal cases, an element will be automatically included in Vue's reactivity system, and the Vue application will therefore re-render automatically when the element changes. But, in advanced cases when an element is marked explicitly as not part of the Vue reactivity system, the $forceUpdate()
method can be used.
Vue Reference: Vue $nextTick() Method
Vue Reference: Vue $refs Object
Vue Reference: Vue 'key' Attribute
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!