wx.showActionSheet({
itemList: ['列1', '列2', '列3'],//显示的列表项
success: function (res) {//res.tapIndex点击的列表项
console.log("点击了列表项:" + that[res.tapIndex])
},
fail: function (res) { },
complete: function (res) { }
})
框架类型 | 问题类型 | API/组件名称 | 终端类型 | 微信版本 | 基础库版本 |
---|---|---|---|---|---|
小程序 | Bug | wx.showActionSheet | 客户端 | 1.02.1809260 | 2.3.0 |
wx.showActionSheet({
itemList: ['列1', '列2', '列3'],//显示的列表项
success: function (res) {//res.tapIndex点击的列表项
console.log("点击了列表项:" + that[res.tapIndex])
},
fail: function (res) { },
complete: function (res) { }
})
2 个回答
那安卓上怎么设置取消 加个按钮 执行什么 安卓的弹窗才消失
安卓和iOS展示不一样。是点击空白处消失的
大神 安卓点击空白处也不消失啊
https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.showActionSheet.html