1. Wx.config () injection permission was used!
wx.config({
beta:true,
debug: false,
appId: appID,
timestamp: ,
nonceStr: ,
signature: ,
jsApiList: ["onScanWXDeviceResult"]
})
2. Use wx.ready () to verify success
wx.ready(function(){
wx.checkJsApi({
jsApiList: ["onScanWXDeviceResult"],
success: function(res) {
}
})
})