beforeDestroy 改名为beforeUnmount; destroyed 改名为unmounted. Vue3.0也提供了Composition API 形式的生命周期钩子,与Vue2.x中钩子对应关系如下 ...
確定! 回上一頁