当前位置:网站首页>Tiktok actual combat ~ the number of comments is updated synchronously
Tiktok actual combat ~ the number of comments is updated synchronously
2022-07-04 22:11:00 【gblfy】
List of articles
One 、 Quick start
1. Child components
<view @click='childBackHome'></view>
2. Parent component
Parent component description :
backHome : Event is the method of sub component callback , It needs to be consistent with the sub component debugging method , You can customize
back: Custom method ; Need to be in the parent component's methods: {} Defined in the method area back Method , Handle as a callback method
<dev @backHome='back'></dev>
3. The sub component calls back to the parent page
Child components
methods: {
childBackHome(){
this.$emit("backHome",e); //backHome Method of parent component ,e Parameters to pass
}
}
4. The parent component receives the callback
Parent component , Method name of subcomponent callback
back(e){
console.log(e) //e It's a parameter passed from val
}
5. The component invokes the process
Subcomponents can also be understood as public components , For other parent pages to import , Achieve the effect of public page or logic extraction
The component invokes the process
- 1. The parent component introduces the child component
- 2. Parent component transfers parameters to child component
- 3. The subcomponent receives parameters
- 4. Perform processing
- 5. After processing, send the result back to the parent component
- 6. The parent component receives the result returned by the child component
- 7. The parent component continues to perform subsequent processing
Two 、 Number of Tiktok comments
2.1. flow chart
2.2. Process brief
- Click the comment icon on the short video page
- Enter the comment window
- Select new comment
- Reply to comments
- Enter comments
- Submit comments
- Comment content at the top
- The number of comments in the comment window is updated
- The number of comments on short video pages has been updated
2.3. Appreciation of flow charts and renderings
边栏推荐
- 现在mysql cdc2.1版本在解析值为0000-00-00 00:00:00的datetime类
- Machine learning notes mutual information
- HDU - 2859 Phalanx(DP)
- Zhiyang innovation signed a cooperation agreement with Huawei to jointly promote the sustainable development of shengteng AI industry
- new IntersectionObserver 使用笔记
- TCP protocol three times handshake process
- 保证接口数据安全的10种方案
- 能源势动:电力行业的碳中和该如何实现?
- gtest从一无所知到熟练使用(3)什么是test suite和test case
- MySQL存储数据加密
猜你喜欢
i.MX6ULL驱动开发 | 24 - 基于platform平台驱动模型点亮LED
PMO:比较25种分子优化方法的样本效率
传智教育|如何转行互联网高薪岗位之一的软件测试?(附软件测试学习路线图)
智洋创新与华为签署合作协议,共同推进昇腾AI产业持续发展
Machine learning notes mutual information
Convolutional neural network model -- lenet network structure and code implementation
Play with grpc - go deep into concepts and principles
Operation of adding material schedule in SolidWorks drawing
Bookmark
MongoDB聚合操作总结
随机推荐
传智教育|如何转行互联网高薪岗位之一的软件测试?(附软件测试学习路线图)
Application practice | Shuhai supply chain construction of data center based on Apache Doris
傳智教育|如何轉行互聯網高薪崗比特之一的軟件測試?(附軟件測試學習路線圖)
抖音实战~评论数量同步更新
【C语言进阶篇】数组&&指针&&数组笔试题
时空预测3-graph transformer
Nat. Commun.| Machine learning jointly optimizes the affinity and specificity of mutagenic therapeutic antibodies
Convolutional neural network model -- lenet network structure and code implementation
What is business intelligence (BI), just look at this article is enough
gtest从一无所知到熟练使用(3)什么是test suite和test case
# 2156. 查找给定哈希值的子串-后序遍历
Xiangjiang Kunpeng joined the shengteng Wanli partnership program and continued to write a new chapter of cooperation with Huawei
Kdd2022 | what features are effective for interaction?
How to remove the black dot in front of the title in word document
Éducation à la transmission du savoir | Comment passer à un test logiciel pour l'un des postes les mieux rémunérés sur Internet? (joindre la Feuille de route pour l'apprentissage des tests logiciels)
Sorting and sharing of selected papers, systems and applications related to the most comprehensive mixed expert (MOE) model in history
Cadeus has never stopped innovating. Decentralized edge rendering technology makes the metauniverse no longer far away
gtest从一无所知到熟练运用(1)gtest安装
并列图的画法,多排多列
HDU - 2859 Phalanx(DP)