1, vue 中 h => h(App) 的含义:

//render: h => h(App) 是下面内容的缩写:

render: function (createElement) {
    return createElement(App);
}
//进一步缩写为(ES6 语法):

render (createElement) {
    return createElement(App);
}
//再进一步缩写为:

render (h){
    return h(App);
}
//按照 ES6 箭头函数的写法,就得到了:

render: h => h(App);

 

2 文章中 vue 组件中如果引入了样式,一定要引入css

{
        test:/\.css$/,
        use:[
          'style-loader',
          'css-loader'
        ]
}

 

 

----

参考文章:

1: 从零开始配置 webpack4 + vue2.x (一)

2: 从零开始的 webpack4 + vue2.x

相关文章:

  • 2021-06-21
  • 2021-09-12
  • 2021-06-30
猜你喜欢
  • 2022-01-01
  • 2021-07-12
  • 2022-03-02
  • 2021-07-20
  • 2021-10-01
  • 2021-11-28
相关资源
相似解决方案