按照官方开发者文档中的demo去做了一样的配置,为什么点击【扫一扫】按钮没有触发这段接口代码?
还有没有触发是不是wx.config没有配置对的原因,
wx.config中appId在账号后台可以找到,那timestamp,nonceStr,signature这3个参数是哪里获取的?
wx.scanQRCode({ needResult: 1, desc: 'scanQRCode desc', success: function (res) { alert(JSON.stringify(res)); } });


以下是我完整的测试代码:
Document
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
欢迎选择我的课程,让我们一起见证您的进步~~