当前位置:网站首页>What is message subscription and publishing?
What is message subscription and publishing?
2022-07-26 07:29:00 【Liu Jiayi_】
Catalog
(1) Introduce
What words do not , Upper figure

Here is the main code of an example :
(2) News subscription
Child components 1
mounted() {
this.pubId = pubsub.subscribe("haha", function (msgName, data) {
console.log(" Someone made a move haha news , The callback function is executed ", msgName, data);
});
},
beforeDestroy() {
pubsub.unsubscribe(this.pubId);
},
(3) News release
Child components 2
methods: {
sendStudentName() {
// this.getStudentName(this.studentName);
pubsub.publish("haha", this.studentName);
},
},边栏推荐
- 3.0.0 alpha 重磅发布!九大新功能、全新 UI 解锁调度系统新能力
- The interface automation test with a monthly salary of 12k+ takes you to get started in 3 minutes
- Simulation of transfer function step response output of botu PLC first-order lag system (SCL)
- C语言关键字extern
- 4、数据的完整性
- QT: list box, table, tree control
- MMOE multi-objective modeling
- PR字幕制作
- 6、组合数据类型
- 系统架构&微服务
猜你喜欢

PR字幕制作

NFT digital collection system development: Huawei releases the first collector's digital collection

ARIMA model for time series analysis and prediction

How to ensure the double write consistency between cache and database?

DCN (deep cross network) Trilogy

JWT快速入门

Learning Efficient Convolutional Networks Through Network Slimming
![[daily question 1] 919. Complete binary tree inserter](/img/a2/2ff77ccdfb78bb1812b989342c2331.png)
[daily question 1] 919. Complete binary tree inserter

6. Backup and recovery of MySQL database

NFT digital collection system development: what are the best digital marketing strategies for NFT digital collection
随机推荐
Installation of Baidu flying paste deep learning framework tutorial in Anaconda
NFT digital collection system development: digital collections give new vitality to brands
TensorFlow学习日记之tflearn
NFT数字藏品开发:数字藏品与NFT的六大区别
依赖和关联的对比和区别
NFT digital collection system development: the collision of literature + Digital Collections
MySQL syntax (2) (pure syntax)
Learn browser decoding from XSS payload
Apache dolphin scheduler 2.x nanny level source code analysis, China Mobile engineers uncover the whole process of service scheduling and start
July training (day 18) - tree
The interface automation test with a monthly salary of 12k+ takes you to get started in 3 minutes
Relevant configurations of pychart: change font style and size, change picture background, and change the font color of console output
【推荐系统经典论文(十)】阿里SDM模型
WCF 入门教程二
3.0.0 alpha blockbuster release! Nine new functions and new UI unlock new capabilities of dispatching system
Quantitative perception training in tensorflow2.x and x86 end evaluation of tflite
「论文笔记」Next-item Recommendations in Short Sessions
:app:checkDebugAarMetadata 2 issues were found when checking AAR metadata: 2 issues were found when
Examples of financial tasks: real-time and offline approval of three scenarios and five optimizations of Apache dolphin scheduler in Xinwang bank
NFT数字藏品系统开发:NFT数藏 的最佳数字营销策略有哪些