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




边栏推荐
- 【米哈游2023届秋招】开启【校招唯一专属内推码EYTUC】
- 力扣_回文数
- KDD2022 | 什么特征进行交互才是有效的?
- MongoDB中的索引操作总结
- Sorting and sharing of selected papers, systems and applications related to the most comprehensive mixed expert (MOE) model in history
- # 2156. Find the substring of the given hash value - post order traversal
- GTEST from ignorance to proficiency (3) what are test suite and test case
- 力扣3_383. 赎金信
- Why do you have to be familiar with industry and enterprise business when doing Bi development?
- Representation of confidence interval
猜你喜欢

傳智教育|如何轉行互聯網高薪崗比特之一的軟件測試?(附軟件測試學習路線圖)

智洋创新与华为签署合作协议,共同推进昇腾AI产业持续发展

Bizchart+slider to realize grouping histogram

Exclusive interview of open source summer | new committer Xie Qijun of Apache iotdb community

KDD2022 | 什么特征进行交互才是有效的?

NAACL-22 | 在基于Prompt的文本生成任务上引入迁移学习的设置

Redis has three methods for checking big keys, which are necessary for optimization
【米哈游2023届秋招】开启【校招唯一专属内推码EYTUC】

从RepVgg到MobileOne,含mobileone的代码

El tree combined with El table, tree adding and modifying operations
随机推荐
关系型数据库
El tree combined with El table, tree adding and modifying operations
传智教育|如何转行互联网高薪岗位之一的软件测试?(附软件测试学习路线图)
QT - plot other problems
odps 中 对表进行了一次备份,为什么在元数据库查m_table 时,两张表的逻辑大小不一致,但数
文件读取写入
Zhiyang innovation signed a cooperation agreement with Huawei to jointly promote the sustainable development of shengteng AI industry
Radio and television Wuzhou signed a cooperation agreement with Huawei to jointly promote the sustainable development of shengteng AI industry
Cadeus has never stopped innovating. Decentralized edge rendering technology makes the metauniverse no longer far away
How is the entered query SQL statement executed?
WebGIS框架---kalrry
Bizchart+slider to realize grouping histogram
Locust性能测试 —— 环境搭建及使用
leetcode 72. Edit Distance 编辑距离(中等)
Scala下载和配置
Open3d surface normal vector calculation
From repvgg to mobileone, including mobileone code
ACM Multimedia 2022 | 视觉语言预训练模型中社会偏见的反事实衡量和消除
Spatiotemporal prediction 3-graph transformer
Keep on fighting! The city chain technology digital summit was grandly held in Chongqing