• vue的生命周期(这篇文章仅做收集之用,整理思路)


    vue2的生命周期:
    beforeCreate——>created——>beforeMount——>mounted——>beforeUpdate
    ——>updated——>beforeDestroy——destroyed

    var
    myVue = new Vue({ el: '#app', data: { data: 'aaaa', info: 'nono' }, beforeCreate: function () { console.log('创建前=======') console.log(this.data) console.log(this.$el) }, created: function () { console.log('已创建==========') console.log(this.info) console.log(this.$el) }, beforeMount: function () { console.log('mount之前=============') console.log(this.info) console.log(this.$el) }, mounted: function () { console.log("mounted==========") console.log(this.info) console.log(this.$el) }, beforeUpdate: function () { console.log('更新前========') }, updated: function () { console.log('更新完成=============') }, beforeDestory: function () { console.log('销毁前============') console.log(this.info) console.log(this.$el) }, destoryed: function () { console.log('已销毁===========') console.log(this.info) console.log(this.$el) } });

     原博客地址:

  • 相关阅读:
    静态文件
    orm多表操作
    thinkphp5.0模块设计
    thinkphp5.0URL访问
    thinkphp5.0入口文件
    thinkphp5.0生命周期
    thinkphp5.0架构总览
    thinkphp5.0目录结构
    thinkphp5.0开发规范
    thinkphp5.0安装
  • 原文地址:https://www.cnblogs.com/zhoujx1066/p/6605124.html
Copyright © 2020-2023  润新知