import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
Vue.config.productionTip = false
new Vue({
router,
store,
template: '<App/>',
components: { App },
}).$mount('#app')
new Vue({
router,
store,
render: h(App)
}).$mount('#app')
const aa = {
template: '<div>{{ massge }}</div>',
date () {
return {
massge: '我是组件'
}
}
}
new Vue({
el: '#app',
render: function (createlement) {
return createlement('h2', { class: 'box' }, ['hellow world'])
return createlement(
'h2',
{ class: 'box' },
createlement(
'button',
{options},
['xxxxx']
)
)
return createlement(aa)
}
})