当前位置:网站首页>Mini Program Study Notes: Communication between Mini Program Components
Mini Program Study Notes: Communication between Mini Program Components
2022-08-10 05:48:00 【Brahma pigeon】
Communication method between applet components
- The parent component accesses the child component through this.selectComponent(".component").setIndex(index), setIndex is a method defined by the child component, and setIndex can be used to modify the internal data of the component.
- The child component defines the parent component trigger event: triggerEvent(eventName, detail), eventName is the custom event name, detail is the event carrying parameter information
this.triggerEvent('clickTabControl', {
'index': index
}, {})
The parent can bind the custom event when using the child component
边栏推荐
- The complex "metaverse" will be interpreted for you, and the Link Reading APP will be launched soon!
- 反射【笔记】
- ORACLE系统表空间SYSTEM占满无法扩充表空间问题解决过程
- 泛型笔记()()()
- PCL,VS配置过程中出现:用 _sopen_s 代替 _open, 或用_CRT_SECURE_NO_WARNNINGS错误
- AWR1843型号毫米波雷达使用
- kaggle小白必看:小白常见的2个错误解决方案
- 集合 set接口
- Models corresponding to each architecture instruction set
- IDEA 项目中设置 Sources Resources 等文件夹
猜你喜欢
随机推荐
共识计算和激励机制
cesium 旋转图片
微信小程序wx.writeBLECharacteristicValue汉字转buffer问题
ORACLE系统表空间SYSTEM占满无法扩充表空间问题解决过程
PCL,VS配置过程中出现:用 _sopen_s 代替 _open, 或用_CRT_SECURE_NO_WARNNINGS错误
利用 crontab 拷贝大文件
redis---非关系型数据库(NoSql)
毫米波雷达基础概念学习
Ten years of sharpening a sword!The digital collection market software, Link Reading APP is officially open for internal testing!
Knowledge Distillation Thesis Learning
链读|最新最全的数字藏品发售日历-08.02
The latest and most complete digital collection sales calendar-07.26
十年磨一剑!数字藏品行情软件,链读APP正式开放内测!
Count down the six weapons of the domestic interface collaboration platform!
Minio分布式存储系统
小程序学习笔记:小程序组件间通信方式
opencv
transaction, storage engine
各个架构指令集对应的机型
Linux数据库Oracle客户端安装,用于shell脚本用sqlplus连接数据库