多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
兼容2.0版本生命周期 ``` beforeCreate -> use setup() created -> use setup() beforeMount -> onBeforeMount mounted -> onMounted beforeUpdate -> onBeforeUpdate updated -> onUpdated beforeDestroy -> onBeforeUnmount destroyed -> onUnmounted activated -> onActivated deactivated -> onDeactivated errorCaptured -> onErrorCaptured // added 调试用的 debug生命周期 onRenderTracked onRenderTriggered // 记录重新reRender的时候哪些值发生了变化 ``` setup函数只会执行一次 ``` setup() { console.log('set up'); onMounted(() => { console.log('onMouted'); }) onUpdated(() => { console.log('updated'); }) onRenderTriggered((event) => { console.log(event); }) } ```