当前位置:网站首页>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
边栏推荐
- Relational database
- Enabling digital economy Fuxin software attends the BRICs high level Forum on Sustainable Development
- ACM multimedia 2022 | counterfactual measurement and elimination of social prejudice in visual language pre training model
- 傳智教育|如何轉行互聯網高薪崗比特之一的軟件測試?(附軟件測試學習路線圖)
- Acwing 2022 daily question
- el-tree结合el-table,树形添加修改操作
- 网上开户哪家证券公司佣金最低,我要开户,网上开户安全吗
- 湘江鲲鹏加入昇腾万里伙伴计划,与华为续写合作新篇章
- AscendEX 上线 Walken (WLKN) - 一款卓越领先的“Walk-to-Earn”游戏
- 并发优化总结
猜你喜欢
抖音实战~评论数量同步更新
Sorting and sharing of selected papers, systems and applications related to the most comprehensive mixed expert (MOE) model in history
i.MX6ULL驱动开发 | 24 - 基于platform平台驱动模型点亮LED
机器学习笔记 - 互信息Mutual Information
湘江鲲鹏加入昇腾万里伙伴计划,与华为续写合作新篇章
TCP protocol three times handshake process
从RepVgg到MobileOne,含mobileone的代码
Deveco device tool 3.0 release brings five capability upgrades to make intelligent device development more efficient
Nat. Commun.| Machine learning jointly optimizes the affinity and specificity of mutagenic therapeutic antibodies
i. Mx6ull driver development | 24 - platform based driver model lights LED
随机推荐
close系统调用分析-性能优化
现在mysql cdc2.1版本在解析值为0000-00-00 00:00:00的datetime类
HBuilder X 常用的快捷键
文件读取写入
ACM multimedia 2022 | counterfactual measurement and elimination of social prejudice in visual language pre training model
KDD2022 | 什么特征进行交互才是有效的?
Xiangjiang Kunpeng joined the shengteng Wanli partnership program and continued to write a new chapter of cooperation with Huawei
ApacheCN 翻译、校对、笔记整理活动进度公告 2022.7
VIM from dislike to dependence (23) -- the last gossip
odps 中 对表进行了一次备份,为什么在元数据库查m_table 时,两张表的逻辑大小不一致,但数
删库不必跑路!详解 MySQL 数据恢复
历史最全混合专家(MOE)模型相关精选论文、系统、应用整理分享
sqlserver对数据进行加密、解密
AscendEX 上线 Walken (WLKN) - 一款卓越领先的“Walk-to-Earn”游戏
Redis 排查大 key 的3种方法,优化必备
并列图的画法,多排多列
Convolutional neural network model -- lenet network structure and code implementation
DevEco Device Tool 3.0 Release带来5大能力升级,让智能设备开发更高效
Sorting and sharing of selected papers, systems and applications related to the most comprehensive mixed expert (MOE) model in history
The drawing method of side-by-side diagram, multi row and multi column