当前位置:网站首页>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)
边栏推荐
- 好用、强大的PDF 阅读软件综合评测:PDF Expert 、MarginNote、LiquidText、Notability、GoodNotes、Zotero
- Small program graduation design based on wechat real estate intermediary house viewing appointment small program graduation design opening report function reference
- Detailed explanation of select in golang (forward)
- What are the design requirements for PCB layout and wiring?
- Why can't China produce products like idea?
- Lumiprobe丨Lumizol RNA 提取试剂解决方案
- Openfire 3.8.2集群配置
- Applet graduation design based on wechat gym private education appointment applet graduation design opening report function reference
- Openfire用户以及群组关系移植
- Go 降序排序 取 Top N
猜你喜欢

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

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

用户网络模型与QoE

Sword finger offer 11 Minimum number of rotation array

图形系统——1. 布局加载

Why can't China produce products like idea?

推荐两款超高质量的壁纸软件

Applet graduation project is based on wechat property maintenance application property applet graduation project opening report function reference

What are the design requirements for PCB layout and wiring?

SMARCA2抗体研究:Abnova SMARCA2 单克隆抗体方案
随机推荐
手动备份和还原DHCP服务器
东方财富软件股票开户是靠谱的吗?在哪开户安全
Introduction to kubernetes resource object and common commands
Introduction to apifox
请问大智慧上开户安全吗
Database comparison tool
[cloud resident co creation] shengteng heterogeneous computing architecture cann helps release the surging computing power of hardware
Go descending sort takes top n
Le test de reconnaissance faciale comporte - t - il des préoccupations en matière de protection de la vie privée? Une entreprise étrangère a été arrêtée en cas d'urgence
A preliminary study of IO model
HackTheBox-baby CachedView
微软独家付费功能,也被完美解锁了
Applet graduation design based on wechat beauty salon technician appointment applet graduation design opening report function reference
Three communication skills in software testing
WiFi安全漏洞KRACK深度解读
Small program graduation design based on wechat real estate intermediary house viewing appointment small program graduation design opening report function reference
How to manage interface documents efficiently and gracefully
【译】clickhouse 22.4和22.5核心特性一览
启牛学堂的vip证券账户是真的安全正规吗?怎么说
Huawei cloud AOM released version 2.0, and three features appeared