vue的生命周期函数

  • beforeCreate(创建前)
  • created(创建后)
  • beforeMount(载入前)
  • mounted(载入后)
  • beforeUpdate(更新前)
  • updated(更新后)
  • beforeDestroy(销毁前)
  • destroyed(销毁后)
  • computed:{/****实现某一属性的实时计算****/ message1:function(){ return this.message.split("").reverse().join(""); } },
  • watched:{/****检测某一属性值的变化****/ },
  • methods:{/****组件内部的方法****/ }, 
原文地址:https://www.cnblogs.com/boonook/p/9707696.html