ios 调用wx.chooseImage没有反应.没有报错,没有提示

发布于 8 年前作者 taowei7591 次浏览最后编辑 8 年前来自 ask

 相册选取

albumSel() {

var that = this;

wx.chooseImage({

count: 1,

sourceType: “album”,

success: function(res) {

var path = res.tempFilePaths[0];

that.setData({

imgPath: path

})

这是js代码,安卓没有问题,ios就没有反应了

3 回复
wenxiuying
wenxiuying1 楼6 年前

楼主 找到原因了吗? 同样的接口在android没有问题

xiuying03
xiuying032 楼6 年前

谢谢.问题解决了.这个好坑啊

dfan
dfan3 楼6 年前

你加个 fail 方法呢,看走不走