调用强制更新方法this.$forceUpdate()会更新视图和数据,触发updated生命周期。<button @click="reload()">强制更新</button>updated(){ console.log("更新了"); } ...
確定! 回上一頁