1、当前用法<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
html引入静态不行
解决方案
APP.vue:
// #ifdef H5
onLaunch: function () {
const script = document.createElement('script');
script.src = "https://res.wx.qq.com/open/js/jweixin-1.3.2.js";
script.type = 'text/javascript';
document.body.appendChild(script)
}
// #endif
uniapp开发h5项目引入weixin-sdk报错wx.miniprogram undefined
最新推荐文章于 2024-02-29 10:30:48 发布