摘要:
onActivated()、onDeactivated() 当组件被<KeepAlive>组件缓存时,会触发这二个生命周期。 比如: <KeepAlive><test></test></KeepAlive> ,此时test组件具有这二个生命周期 这二个生命周期。执行顺序依次: onActivated 阅读全文
posted @ 2022-09-16 15:24
1024记忆
阅读(3729)
评论(0)
推荐(0)
摘要:
onBeforeUpdate()、onUpdated() 这二个生命周期。执行顺序依次: onBeforeUpdate() 》 onUpdated() 使用前需要被引入: import { onBeforeUpdate, onUpdated } from 'vue' onBeforeUpdate() 阅读全文
posted @ 2022-09-16 15:08
1024记忆
阅读(3072)
评论(0)
推荐(0)
摘要:
onBeforeMount()、onMounted() 、onBeforeUnmount()、onUnmounted() 这四个生命周期分别应在组件的挂载、卸载时触发。执行顺序依次: onBeforeMount() 》 onMounted() 》 onBeforeUnmount() 》 onUnmo 阅读全文
posted @ 2022-09-16 10:00
1024记忆
阅读(8967)
评论(0)
推荐(0)

浙公网安备 33010602011771号