new Vue({
el:'#app',
render: function (h) {
return h(App)
}
})
new Vue({
render: function (h) {
return h(App)
}
}).$mount('#app')
以上两种写法效果等同。差别在于后者内部多了条判断代码,最后执行效果相同
new Vue({
el:'#app',
render: function (h) {
return h(App)
}
})
new Vue({
render: function (h) {
return h(App)
}
}).$mount('#app')
以上两种写法效果等同。差别在于后者内部多了条判断代码,最后执行效果相同