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

边栏推荐
猜你喜欢

I use this recruit let the team to improve the development efficiency of 100%!

One step ahead, don't miss it again, the chain reading APP will be launched soon!

The complex "metaverse" will be interpreted for you, and the Link Reading APP will be launched soon!

图纸怎么折?(A0,A1,A2,A3の图纸如何折成A4大小)

基本比例尺标准分幅编号流程

tinymce富文本编辑器

小记录:Pytorch做深度学习必要加载的包

泛型笔记()()()

多表查询 笔记

The latest and most complete digital collection sales calendar-07.27
随机推荐
Canal reports Could not find first log file name in binary log index file
在yolov5的网络结构中添加注意力机制模块
智能合约和去中心化应用DAPP
【论文笔记1】小样本分类
pytorch框架学习(4)torchvision模块&训练一个简单的自己的CNN (一)
redis---非关系型数据库(NoSql)
操作表 函数的使用
cesium rotate image
cesium 旋转图片
链读好文:热加密存储与冷加密存储有什么区别?
transaction, storage engine
wiki confluence installation
网络安全6
转载fstream,ifstream的详细用法
图片批量添加水印批量缩放图片到指定大小
view【】【】【】【】
深度学习中数据到底要不要归一化?实测数据来说明!
【YOLOv5训练错误】权重文件出错?
sqlplus 显示上一条命令及可用退格键
The latest and most complete digital collection sales calendar-07.27