当前位置:网站首页>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')
边栏推荐
- Inftnews | view: market cooling or opportunities for NFT applications
- PHP开发的网站,如何实现批量打印快递单的功能?
- MySQL uses SQL statements to modify field length and field name
- [JMeter] shell script automatically executes JMeter
- Kirin software and Geer software focus on the development of network data security
- 世界上第一个“半机械人”去世,改造自己只为“逆天改命”
- 中坚力量!优炫软件入选2022年中国数字安全百强
- 将有色液体图像转换成透明液体,CMU教机器人准确掌控向杯中倒多少水
- The data intelligence infrastructure upgrade window is approaching? See Chapter 9 how Yunji dingodb breaks through data pain points
- 社区文章|MOSN 构建 Subset 优化思路分享
猜你喜欢

字节三面:到底知不知道什么是Eureka?

Inftnews | view: market cooling or opportunities for NFT applications

Gartner表示:云数据库发展强劲,但本地数据库仍然充满活力

Batch create / delete files, folders, modify file name suffixes

线程常用调度方法

【这款工具配合jmeter,会让你的工作效率至少提升80%,强烈推荐给大家】

iNFTnews | 观点:市场降温或是让NFT应用走向台前的机会

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

How to manage electronic documents efficiently and concisely

解决win7任务栏谷歌浏览器chrome图标丢失、异常空白的问题
随机推荐
2022 Shaanxi Provincial Safety Officer C certificate examination question bank simulated examination platform operation
Gartner表示:云数据库发展强劲,但本地数据库仍然充满活力
超简单的C语言贪吃蛇 不闪屏 双缓冲
MySQL使用SQL语句修改字段长度、字段名称
字节二面:Redis主节点的Key已过期,但从节点依然读到过期数据是为什么?怎么解决?
Career development planning
Opencv人脸识别之发送QQ邮箱
laravel 开发 文章URL 生成器
牛客网——华为题库(31~40)
jg_使用easyexcel读取excel_20220619
智能合约dapp系统开发模式定制方案
麒麟软件携手格尔软件聚焦网络数据安全发展
iNFTnews | 观点:市场降温或是让NFT应用走向台前的机会
Discussion on the open source GIS solution of our company
Path Join() and path The difference between resolve()
[JMeter] shell script automatically executes JMeter
After using Matplotlib for so long, I didn't know that the data could move
Niuke.com Huawei question bank (31~40)
MySQL每日面经【02】
Introduction and configuration method of wireless 802.1x authentication