当前位置:网站首页>6-9 应用间通信 - 子应用通信
6-9 应用间通信 - 子应用通信
2022-06-22 10:43:00 【bus_lupe】
- 子应用1 - 父应用交互 - 子应用2
- customevent
应用2注册test1监听事件,并在回调函数中触发test2监听事件
window.customEvent.on('test1', () => {
window.customEvent.emit('test2', {
detail: 234})
})
应用1注册test1监听事件,触发test2监听事件
window.customEvent.on('test2', () => {
// do something
})
window.customEvent.emit('test1')
边栏推荐
- 一条TCP连接时占用内存空间多少?
- 投资交易管理
- 【这款工具配合jmeter,会让你的工作效率至少提升80%,强烈推荐给大家】
- Use of libevent
- MySQL uses SQL statements to modify field length and field name
- LeetCode Algorithm 剑指 Offer 22. 链表中倒数第k个节点
- Yolov3 target detection
- Vs2022 connecting to SQLSERVER database tutorial
- Target detection / segmentation training using pytorch mask RCNN
- 代码签名证书一旦泄露 危害有多大
猜你喜欢
![[deep learning] great! The new attention makes the model 2-4 times faster!](/img/03/37584c9f9d6b16e5a5edc87e3eaa6b.png)
[deep learning] great! The new attention makes the model 2-4 times faster!

Gartner said: cloud database is developing strongly, but local database is still full of vitality

Start from the principle of MVC and knock on an MVC framework to bring you the pleasure of being a great God

When the system is reconstructed, I will leave!

TCP建立连接过程(深入源码理解3次握手)

Zero‐Copy API

Summary of neural network training trick

Kirin software and Geer software focus on the development of network data security

【毕业季·进击的技术er】青春不散场

外贸专题:外贸邮件营销模板
随机推荐
大学生期末考试SQL语句
在 Laravel 中使用计算列
2022 Shaanxi Provincial Safety Officer B certificate operation certificate examination question bank and online simulation examination
Basic principles of the Internet
On the routing tree of gin
[deep learning] great! The new attention makes the model 2-4 times faster!
[deep learning] tensorflow, danger! Google itself is the one who abandoned it
heidisql插入记录,总是出错,要怎么改?
代碼簽名證書一旦泄露 危害有多大
Zero‐Copy API
iNFTnews | 观点:市场降温或是让NFT应用走向台前的机会
scrapy.Request() 的 meta参数 数据的传递
TCP异常连接
After using Matplotlib for so long, I didn't know that the data could move
LeetCode Algorithm 剑指 Offer 18. 删除链表的节点
The future of Dao: an organization primitive for building Web3
Duxiaoyong, head of virtual teaching and Research Office of database course: Based on the major needs of domestic databases, explore a new mode of course system construction
scrapy. Transfer of meta parameter data of request()
Using computed columns in laravel
【这款工具配合jmeter,会让你的工作效率至少提升80%,强烈推荐给大家】