问题
微信开发者工具调试公众号,使用wx.chooseImage()报错:chooseImage:fail, the permission value is offline veri。
或者其余方法的xxx:fail, the permission value is offline veri
原因:微信开发者工具部分功能没有开启
解决方法
地址栏中访问https://www.weixinsxy.com/jssdk/
之后会出现一个微信JS-SDK Demo的页面。
再返回就可以正常使用wx.chooseImage()接口了。