微信 ios端config配置失败 android端正常
现象:
两套环境:a,b
- | a | b |
---|---|---|
android | 正常 | 正常 |
ios | 异常 | 正常 |
wx.ready 不执行 |
原因:
引入的WX JS:
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
a环境https,b环境http,而引入的wx.js是http
结论
如果你页面启用了https
,务必引入 https
😕/res.wx.qq.com/open/js/jweixin-1.0.0.js ,否则将无法在iOS9.0以上系统中成功使用JSSDK