wx.showActionSheet在onLoad中无法显示,仅限ios设备?

发布于 6 年前作者 taoye12171 次浏览最后编辑 6 年前来自 issues

wx.showActionSheet({

itemList: [‘A’, ‘B’, ‘C’],

success(res) {

console.log(res.tapIndex)

},

fail(res) {

console.log(res.errMsg)

}

});

用官方的例子跑了便还是不行

1 回复
xiulan55
xiulan551 楼4 年前

在onReady中试试