render 函数

render 函数接收一个 h 函数参数,

返回值 h 函数调用 ,h 函数接收3个参数

h函数参数1:节点

h函数参数2:节点属性

h函数参数3:节点内容

render(h){

  return h('h1',{
      style:{
        color: red,
        backgroundColor: pink
       }
    },
    '测试标题')

}

猜你喜欢

转载自blog.csdn.net/m0_56274171/article/details/123764682