render: h => h(App)和render: function(createElement){ createElement(App)}有什么不一样吗
粉丝福利 : 关注VUE中文社区公众号,回复视频领取粉丝福利
如题 import App from ‘./app.vue’ //App是一个组件 render: h => h(App) 和 render: function(createElement){ createElement(App) } 为什么箭头函数能渲染出来而另一个渲染不出来呢? h => h(App) 和 function(h){ h(App) }不是一样的吗?除了this的词法作用域