当前位置:网站首页>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




边栏推荐
- Go language loop statement (3 in Lesson 10)
- Cadeus has never stopped innovating. Decentralized edge rendering technology makes the metauniverse no longer far away
- The use of complex numbers in number theory and geometry - Cao Zexian
- HDU - 2859 Phalanx(DP)
- 广电五舟与华为签署合作协议,共同推进昇腾AI产业持续发展
- 2022 version of stronger jsonpath compatibility and performance test (snack3, fastjson2, jayway.jsonpath)
- [optimtool.unconstrained] unconstrained optimization toolbox
- 赋能数字经济 福昕软件出席金砖国家可持续发展高层论坛
- How to implement Devops with automatic tools
- Sorting and sharing of selected papers, systems and applications related to the most comprehensive mixed expert (MOE) model in history
猜你喜欢

历史最全混合专家(MOE)模型相关精选论文、系统、应用整理分享

gtest从一无所知到熟练使用(3)什么是test suite和test case

并发优化总结

HUAWEI nova 10系列发布 华为应用市场筑牢应用安全防火墙

QT - double buffer plot

从RepVgg到MobileOne,含mobileone的代码

Visual task scheduling & drag and drop | scalph data integration based on Apache seatunnel

Super detailed tutorial, an introduction to istio Architecture Principle and practical application

做BI开发,为什么一定要熟悉行业和企业业务?
![[advanced C language] array & pointer & array written test questions](/img/3f/83801afba153cfc0dd73aa8187ef20.png)
[advanced C language] array & pointer & array written test questions
随机推荐
Bizchart+slider to realize grouping histogram
Cadre WebGIS - kalrry
删库不必跑路!详解 MySQL 数据恢复
并发优化总结
How to implement Devops with automatic tools
283. 移动零-c与语言辅助数组法
VS2019 C# release下断点调试
close系统调用分析-性能优化
【米哈游2023届秋招】开启【校招唯一专属内推码EYTUC】
Play with grpc - go deep into concepts and principles
股票开户流程是什么?使用同花顺手机炒股软件安全吗?
凭借了这份 pdf,最终拿到了阿里,字节,百度等八家大厂 offer
哈希表(Hash Tabel)
i.MX6ULL驱动开发 | 24 - 基于platform平台驱动模型点亮LED
卷积神经网络模型之——LeNet网络结构与代码实现
从RepVgg到MobileOne,含mobileone的代码
GTEST from ignorance to proficiency (3) what are test suite and test case
力扣98:验证二叉搜索树
QT - plot other problems
玩转gRPC—深入概念与原理