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




边栏推荐
- VIM from dislike to dependence (23) -- the last gossip
- Sorting and sharing of selected papers, systems and applications related to the most comprehensive mixed expert (MOE) model in history
- MySQL存储数据加密
- QT—绘制其他问题
- leetcode 72. Edit Distance 编辑距离(中等)
- TCP协议三次握手过程
- How to implement Devops with automatic tools
- Which securities company is better to open an account? Is online account opening safe
- VS2019 C# release下断点调试
- Machine learning notes mutual information
猜你喜欢

Keep on fighting! The city chain technology digital summit was grandly held in Chongqing

做BI开发,为什么一定要熟悉行业和企业业务?

É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)

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

Zhiyang innovation signed a cooperation agreement with Huawei to jointly promote the sustainable development of shengteng AI industry

常用的开源无代码测试工具

并发网络模块化 读书笔记转

B站大量虚拟主播被集体强制退款:收入蒸发,还倒欠B站;乔布斯被追授美国总统自由勋章;Grafana 9 发布|极客头条

close系统调用分析-性能优化

能源势动:电力行业的碳中和该如何实现?
随机推荐
Redis has three methods for checking big keys, which are necessary for optimization
gtest从一无所知到熟练使用(4)如何用gtest写单元测试
GTEST from ignorance to proficiency (3) what are test suite and test case
New intersectionobserver usage notes
How is the entered query SQL statement executed?
Kdd2022 | what features are effective for interaction?
解决异步接口慢导致的数据错乱问题
The drawing method of side-by-side diagram, multi row and multi column
文件读取写入
Spatiotemporal prediction 3-graph transformer
面试题 01.01. 判定字符是否唯一
能源势动:电力行业的碳中和该如何实现?
You don't have to run away to delete the library! Detailed MySQL data recovery
[optimtool.unconstrained] unconstrained optimization toolbox
i.MX6ULL驱动开发 | 24 - 基于platform平台驱动模型点亮LED
Hash table
Scala下载和配置
什么是商业智能(BI),就看这篇文章足够了
gtest从一无所知到熟练运用(1)gtest安装
置信区间的画法