vue生命周期钩子函数



beforeCreate: function () {
            console.log('beforeCreate 创建前状态》');
        },
        created: function () {
            console.log('created 创建完毕状态》');
            
        },
        beforeMount: function () {
            console.log('beforeMount 挂载前状态》');
            
        },
        mounted: function () {
            console.log('mounted 挂载结束状态》');
        },
        beforeUpdate: function () {
            console.log('beforeUpdate 更新前状态》');
        //这里指的是页面渲染新数据之前 }, updated: function () { console.log('updated 更新完成状态》'); }, beforeDestroy: function () { console.log('beforeDestroy 销毁前状态》'); }, destroyed: function () { console.log('destroyed 销毁完成状态》'); }

相关文章:

  • 2022-01-30
  • 2022-12-23
  • 2022-12-23
  • 2021-09-18
猜你喜欢
  • 2021-05-20
  • 2021-10-06
  • 2021-10-08
  • 2021-10-23
相关资源
相似解决方案