摘要:
onBeforeUpdate()、onUpdated() 这二个生命周期。执行顺序依次: onBeforeUpdate() 》 onUpdated() 使用前需要被引入: import { onBeforeUpdate, onUpdated } from 'vue' onBeforeUpdate() 阅读全文
摘要:
onBeforeMount()、onMounted() 、onBeforeUnmount()、onUnmounted() 这四个生命周期分别应在组件的挂载、卸载时触发。执行顺序依次: onBeforeMount() 》 onMounted() 》 onBeforeUnmount() 》 onUnmo 阅读全文