开发者社区 问答 正文

AA啊?

<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>


展开
收起
马孟起 2017-10-30 23:53:00 2070 分享 版权
0 条回答
写回答
取消 提交回答
问答地址: