You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
450 B
26 lines
450 B
// 引入Vue |
|
import Vue from 'vue' |
|
// 引入App |
|
import App from './App.vue' |
|
|
|
Vue.config.productionTip = false |
|
|
|
// 创建Vue实例 |
|
new Vue({ |
|
render: h => h(App), |
|
}).$mount('#app') |
|
|
|
// el的写法 |
|
// new Vue({ |
|
// el: '#app', |
|
// render: h => h(App), |
|
// }) |
|
|
|
// rander的完整写法 |
|
// new Vue({ |
|
// el: '#app', |
|
// render(createElement) { |
|
// console.log("rander", typeof createElement) |
|
// return createElement('h1', 'Hello') |
|
// } |
|
// })
|