render function

The render function receives an h function parameter,

Return value h function call, h function receives 3 parameters

h function parameter 1: node

h function parameter 2: node attribute

h function parameter 3: node content

render(h){

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

}

Guess you like

Origin blog.csdn.net/m0_56274171/article/details/123764682