[Vuejs]-How to bind click event after page is fully loaded

0👍

You are missing a comma(“,”) after the data property. Try again after adding it.

export default {
  data () {
    return {
      list: []
    }
  }, <===== Here.
  methods: {
    addToList () {
      this.list.push( // some object )
    },
    clickDiv() {
      console.log('click div!!!')
    }
  }
}

Leave a comment