actionsheet 列表选择器
代码,如果列表数据要动态的,那这里引用一个变量即可,你去修改变量这里自然也就变了。
wx.showActionSheet({
itemList: [‘老大’, ‘老二’, ‘老三’],
itemColor:“blue”,
success:function(res){
wx.showToast({
title: ‘’+res.tapIndex,
icon:‘none’
})
},
fail:function(res){
wx.showToast({
title: ‘cancel’,
icon:‘loading’
})
}
})
04-26
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交