Vue

the different of start between Vue2 and Vue3

const app = new Vue({
  el: '#app',
  data: {
    name: 'Leedom'
  }
})
const app = {
  data() {
    return {
      name: 'Leedom'
    }
  }
}

Vue.createApp(app).mount('#app')
上次更新:
贡献者: leedom