当前位置:网站首页>抖音实战~评论数量同步更新
抖音实战~评论数量同步更新
2022-07-04 21:38:00 【gblfy】

一、快速入门
1. 子组件
<view @click='childBackHome'></view>
2. 父组件
父组件说明:
backHome :事件为子组件回调的方法,需要和子组件会调方法一致即可,可以自定义
back:自定义方法;需要在父组件的 methods: {}方法区中定义back方法,作为回调方法处理
<dev @backHome='back'></dev>
3. 子组件回调父页面
子组件
methods: {
childBackHome(){
this.$emit("backHome",e); //backHome父组件的方法,e要传递的参数
}
}
4. 父组件接收回调
父组件中,子组件回调的方法名
back(e){
console.log(e) //e是传过来的参数val
}
5. 组件调用流程
子组件也可以理解为公共组件,供其他父页面引入,达到公共页面或者逻辑抽取的效果
组件调用流程
- 1.父组件引入子组件
- 2.父组件传参子组件
- 3.子组件接收参数
- 4.执行处理
- 5.处理完成将结果回传父组件
- 6.父组件接收子组件回传结果
- 7.父组件继续执行以后的处理
二、抖音评论数量
2.1. 流程图

2.2. 流程简述
- 短视频页面点击评论图标
- 进入评论窗口
- 选择新增评论
- 回复评论
- 输入评论内容
- 提交评论内容
- 评论内容置顶
- 评论窗口评论数量更新
- 短视频页面评论数量更新
2.3. 流程图效果图鉴赏




边栏推荐
- AcWing 2022 每日一题
- Spatiotemporal prediction 3-graph transformer
- 从RepVgg到MobileOne,含mobileone的代码
- [advanced C language] array & pointer & array written test questions
- 一文掌握数仓中auto analyze的使用
- Cloudcompare & open3d DBSCAN clustering (non plug-in)
- Delphi SOAP WebService 服务器端多个 SoapDataModule 实现相同的接口方法,接口继承
- Is it safe to open an account in the stock of Caicai college? Can you only open an account by digging money?
- 机器人相关课程考核材料归档实施细则2022版本
- From repvgg to mobileone, including mobileone code
猜你喜欢

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

可视化任务编排&拖拉拽 | Scaleph 基于 Apache SeaTunnel的数据集成

赋能数字经济 福昕软件出席金砖国家可持续发展高层论坛

Nat. Commun.| 机器学习对可突变的治疗性抗体的亲和力和特异性进行共同优化

能源势动:电力行业的碳中和该如何实现?

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

How to use concurrentlinkedqueue as a cache queue

Bizchart+slider to realize grouping histogram

Super detailed tutorial, an introduction to istio Architecture Principle and practical application
![Compréhension approfondie du symbole [langue C]](/img/4b/26cf10baa29eeff08101dcbbb673a2.png)
Compréhension approfondie du symbole [langue C]
随机推荐
PostgreSQL基本结构——表
2022 version of stronger jsonpath compatibility and performance test (snack3, fastjson2, jayway.jsonpath)
flink1.13 sql基础语法(一)DDL、DML
vim 从嫌弃到依赖(23)——最后的闲扯
Sorting and sharing of selected papers, systems and applications related to the most comprehensive mixed expert (MOE) model in history
Drop down selection of Ehlib database records
gtest从一无所知到熟练使用(3)什么是test suite和test case
El tree combined with El table, tree adding and modifying operations
ArcGIS 10.2.2 | solution to the failure of ArcGIS license server to start
NAACL-22 | 在基于Prompt的文本生成任务上引入迁移学习的设置
从RepVgg到MobileOne,含mobileone的代码
超详细教程,一文入门Istio架构原理及实战应用
力扣98:验证二叉搜索树
Spatiotemporal prediction 3-graph transformer
GTEST from ignorance to proficiency (3) what are test suite and test case
复数在数论、几何中的用途 - 曹则贤
File read write
Monitor the shuttle return button
Basic structure of PostgreSQL - table
Telephone encryption, middle 4 is replaced by * * * *