开发者社区> 问答> 正文

AA啊?

马孟起 2017-10-30 23:53:00 1391
<script>
  module.exports = {
    data: {},
    methods: {},

    init: function () {
      console.log('Initializes the internal variable, adds the function of the event');
    },
    created: function () {
      console.log('Finish data binding, triggered before compiling');
    },
    ready: function () {
      console.log('Finish compiling, triggered after Virtual DOM');
    },
    destroyed: function () {
      console.log('Called when the page is destroyed');
    }
  }
</script>


分享到
取消 提交回答
全部回答(0)
+ 订阅

时时分享云计算技术内容,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。

推荐文章