使用微信开发者工具调试公众号H5项目时上传图片报错:chooseImage:fail, the permission value is offline veri

124 阅读1分钟

原因:wx.chooseImage()报错:chooseImage:fail, the permission value is offline veri,原因是因为微信开发者工具部分功能没有开启。

解决方法:在地址栏中输入https://www.weixinsxy.com/jssdk/ ,之后会出现一个微信JS-SDK Demo的页面。

再返回就可以正常使用wx.chooseImage()接口了。