一,with语法
with使用二,编译模板
this._c:createElement;this._v:createTextVNode1,模板编译为render函数,执行render函数返回vnode(虚拟节点)
2,基于vnode在执行patch和diff
3,使用webpack vue-loader,会在开发环境下编译模板
4,createElement与vdom中的h函数类似
三,vue组件中可以使用render代替template
一,with语法
with使用二,编译模板
this._c:createElement;this._v:createTextVNode1,模板编译为render函数,执行render函数返回vnode(虚拟节点)
2,基于vnode在执行patch和diff
3,使用webpack vue-loader,会在开发环境下编译模板
4,createElement与vdom中的h函数类似
三,vue组件中可以使用render代替template
本文标题:vue编译模板
本文链接:https://www.haomeiwen.com/subject/fexkzhtx.html
网友评论