当前位置:网站首页>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)
边栏推荐
- 如何高效优雅地管理接口文档
- The fourth column, kubernetes cloud native combat, is coming ~
- Shanghai Pudong Development Bank Software Test interview real question
- 如何设计业务高性能高可用计算架构 - 作业
- Go, begin, end, for, after, instead of
- 独立站卖家如何高效管理复杂的Facebook主页?
- Go 降序排序 取 Top N
- NFT流动性协议的安全困局—NFT借贷协议XCarnival被黑事件分析
- [cloud resident co creation] shengteng heterogeneous computing architecture cann helps release the surging computing power of hardware
- Small program graduation project based on wechat recruitment small program graduation project opening report function reference
猜你喜欢

Small program graduation project based on wechat examination small program graduation project opening report function reference

NFT流动性协议的安全困局—NFT借贷协议XCarnival被黑事件分析

抗兔Dylight 488丨Abbkine通用型免疫荧光(IF)工具箱

Lumiprobe ProteOrange 蛋白质凝胶染料说明书

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

IDM certification process log embedding point description

解析机器人主持教学的实践发展

use. NETCORE's own background job, which simply simulates producers and consumers' processing of request response data in and out of the queue

PHP使用栈解决迷宫问题

Kubernetes visual interface dashboard
随机推荐
Packet capturing and sorting out external Fiddler -- understanding the toolbar [1]
浦发银行软件测试面试真题(小编面试亲测)
Lumiprobe丨Lumizol RNA 提取试剂解决方案
Small program graduation project based on wechat chess and card room small program graduation project opening report function reference
Redis6 notes 04 master-slave replication, cluster, application problems, new redis6 features
数据库对比工具
面部识别试验涉及隐私安全问题?国外一公司被紧急叫停
What are the design requirements for PCB layout and wiring?
IDM certification process log embedding point description
kubernetes资源对象介绍及常用命令
Shanghai Pudong Development Bank Software Test interview real question
Unity about oculus quest2 basic development based on XR interaction toolkit 003- capture function - making a VR bowling game
手动备份和还原DHCP服务器
ONEFLOW source code parsing: automatic inference of operator signature
Huawei cloud AOM released version 2.0, and three features appeared
[flask] update and delete crud of data
About the solution of "modulenotfounderror: no module named 'flask.\u compat'"
19.2 容器分类、array、vector容器精解
Konva series tutorial 3: Customizing drawings
用户网络模型与QoE