当前位置:网站首页>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
边栏推荐
- 力扣2_1480. 一维数组的动态和
- KDD2022 | 什么特征进行交互才是有效的?
- new IntersectionObserver 使用笔记
- Energy momentum: how to achieve carbon neutralization in the power industry?
- 一文掌握数仓中auto analyze的使用
- Which securities company has the lowest Commission for opening an account online? I want to open an account. Is it safe to open an account online
- AcWing 2022 每日一题
- Kdd2022 | what features are effective for interaction?
- PostgreSQL基本结构——表
- HBuilder X 常用的快捷键
猜你喜欢
保证接口数据安全的10种方案
Locust性能测试 —— 环境搭建及使用
TCP protocol three times handshake process
Xiangjiang Kunpeng joined the shengteng Wanli partnership program and continued to write a new chapter of cooperation with Huawei
一文掌握数仓中auto analyze的使用
【C语言进阶篇】数组&&指针&&数组笔试题
Bizchart+slider to realize grouping histogram
Redis 排查大 key 的3种方法,优化必备
Bookmark
Redis has three methods for checking big keys, which are necessary for optimization
随机推荐
玩转gRPC—深入概念与原理
凭借了这份 pdf,最终拿到了阿里,字节,百度等八家大厂 offer
力扣2_1480. 一维数组的动态和
bizchart+slider实现分组柱状图
Solana链上应用Crema因黑客攻击停运
Telephone encryption, middle 4 is replaced by * * * *
股票开户流程是什么?使用同花顺手机炒股软件安全吗?
力扣98:验证二叉搜索树
Interview question 01.01 Determine whether the character is unique
Cadeus has never stopped innovating. Decentralized edge rendering technology makes the metauniverse no longer far away
How can the advertising system of large factories be upgraded without the presence of large models
历史最全混合专家(MOE)模型相关精选论文、系统、应用整理分享
Radio and television Wuzhou signed a cooperation agreement with Huawei to jointly promote the sustainable development of shengteng AI industry
close系统调用分析-性能优化
Solve the problem of data disorder caused by slow asynchronous interface
leetcode 72. Edit Distance 编辑距离(中等)
置信区间的画法
HDU - 1078 fatmouse and cheese (memory search DP)
并列图的画法,多排多列
From repvgg to mobileone, including mobileone code