uniapp 中调用企业微信 wx.config is not a function 和 wx.agentconfig is not a function
在unipp中调用 企业微信wx.config 和wx.agentconfig一直没有调通开始是直接下载<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script><script src="https://open.work.weixin.qq.com/wwopen/js/jw
·
在unipp中调用 企业微信wx.config 和wx.agentconfig一直没有调通
开始是直接下载
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script src="https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js" type="text/javascript"></script>
文件到本地,然后再引入,结果 wx.config可以调通,但是 wx.agentconfig一直不行
解决办法
把上面两个js在public 的index.html 中引入
注意的是不能使用 wx.config和 wx.agentconfig 调用
将 wx 改为 jWeixin
即是 jWeixin.config() 和 jWeixin.agentconfig() 就可以了, 研究了两天的成果
扫码二维码看IT面试题
更多推荐
已为社区贡献10条内容
所有评论(0)