songNJ / tencentcloud-webar

tencent effect webar demo
1 stars 0 forks source link

Use this package will cause wx to be undefined #1

Open xinxixingchen opened 4 months ago

xinxixingchen commented 4 months ago

Our web page is loaded in the webview page of the mini program, and the following js is introduced https://res.wx.qq.com/open/js/jweixin-1.3.2.js

But when I use the wx variable, I get undefined

This problem is reproduced on both development tools and phones

企业微信截图_16e9feb5-6d1a-479a-9213-d4ebe8bbc24f
songNJ commented 4 months ago

It means introducing“ https://res.wx.qq.com/open/js/jweixin-1.3.2.js ”Is it caused by the undefined nature of wx or the introduction of tentcloud-webar-wx? I don't understand