当前位置:网站首页>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
边栏推荐
- Flink1.13 SQL basic syntax (I) DDL, DML
- Is it safe to open an account in the stock of Caicai college? Can you only open an account by digging money?
- 抖音实战~评论数量同步更新
- 机器学习笔记 - 互信息Mutual Information
- Ascendex launched Walken (WLKN) - an excellent and leading "walk to earn" game
- Cadre WebGIS - kalrry
- GTEST from ignorance to proficient use (2) what is test fixture
- B站大量虚拟主播被集体强制退款:收入蒸发,还倒欠B站;乔布斯被追授美国总统自由勋章;Grafana 9 发布|极客头条
- Open3D 曲面法向量计算
- Bookmark
猜你喜欢
Convolutional neural network model -- lenet network structure and code implementation
Bookmark
Super detailed tutorial, an introduction to istio Architecture Principle and practical application
智洋创新与华为签署合作协议,共同推进昇腾AI产业持续发展
Locust性能测试 —— 环境搭建及使用
TCP protocol three times handshake process
保证接口数据安全的10种方案
传智教育|如何转行互联网高薪岗位之一的软件测试?(附软件测试学习路线图)
How to implement Devops with automatic tools
广电五舟与华为签署合作协议,共同推进昇腾AI产业持续发展
随机推荐
i. Mx6ull driver development | 24 - platform based driver model lights LED
2022 version of stronger jsonpath compatibility and performance test (snack3, fastjson2, jayway.jsonpath)
面试题 01.08. 零矩阵
bizchart+slider实现分组柱状图
PMO:比较25种分子优化方法的样本效率
close系统调用分析-性能优化
机器人相关课程考核材料归档实施细则2022版本
Locust性能测试 —— 环境搭建及使用
VS2019 C# release下断点调试
文件读取写入
Huawei Nova 10 series released Huawei application market to build a solid application security firewall
You don't have to run away to delete the library! Detailed MySQL data recovery
Hash table
Scala下载和配置
赋能数字经济 福昕软件出席金砖国家可持续发展高层论坛
File read write
HDU - 1078 fatmouse and cheese (memory search DP)
HDU - 2859 Phalanx(DP)
置信区间的画法
283. 移动零-c与语言辅助数组法