当前位置:网站首页>render函数解析
render函数解析
2022-06-28 18:30:00 【qq_46302247】

引入vue.runtime.esm.js
引入vue.runtime.xxx.js时,vue组件中可以使用,因为项目的packag.json中有vue-template-compiler用于解析(注意:是标签;使用完整版vue.js时,vm中的template是配置项)
render是一个由vue内部调用的函数
elementCreate()的传参为标签
render(elementCreate) {
return elementCreate('h1', '你好!')
}
elementCreate()的传参为vue组件
import App from './app.vue'
render(elementCreate) {
return elementCreate(App)
}
箭头函数写法:
import App from './app.vue'
render: h => h(App)
边栏推荐
- Ten MySQL locks, one article will give you full analysis
- 如何使用 SAP CDS view 中的 currency conversion 功能
- Kubernetes visual interface dashboard
- Unity about oculus quest2 basic development based on XR interaction toolkit 003- capture function - making a VR bowling game
- 华为云AOM发布2.0版本,3大特性亮相
- 工业数字化与新一代数字化系统设计平台----讲座
- 运筹学note
- SMARCA2抗体研究:Abnova SMARCA2 单克隆抗体方案
- CORBA 架构体系指南(通用对象请求代理体系架构)
- Lumiprobe非荧光叠丨氮化物研究丨3-叠丨氮丙醇
猜你喜欢

Why can't China produce products like idea?

Common DOS commands

SMARCA2抗体研究:Abnova SMARCA2 单克隆抗体方案

Unity about oculus quest2 basic development based on XR interaction toolkit 003- capture function - making a VR bowling game

konva系列教程3:自定义图形

第2章 处理文件、摄像头和图形用户界面cameo应用

What are the design requirements for PCB layout and wiring?

浦发银行软件测试面试真题(小编面试亲测)

Industrial digitalization and new generation digitalization system design platform -- Lecture

Applet graduation design based on wechat conference room reservation applet graduation design opening report function reference
随机推荐
Detailed explanation of select in golang (forward)
Applet graduation project is based on wechat property maintenance application property applet graduation project opening report function reference
Dnslog injection
数据库对比工具
curl: (56) Recv failure: Connection reset by peer
kubeadm创建kubernetes集群
【云驻共创】昇腾异构计算架构CANN,助力释放硬件澎湃算力
Three communication skills in software testing
浦发银行软件测试面试真题(小编面试亲测)
PCB线路板布局和布线都有哪些设计要求?
HackTheBox-baby CachedView
Yixin Huachen: real estate enterprises want to grasp the opportunity of the times for digital transformation
Spark Tuning (submit job resource parameter tuning)
【软件测试】2022年普通高等学校招生全国统一考试
sqrt()函数的详解和用法「建议收藏」
February 15, 2022 learning summary
运筹学note
图形系统——2.view绘制
如何高效优雅地管理接口文档
[translation] list of Clickhouse 22.4 and 22.5 core features