以文本方式查看主题 - Foxtable(狐表) (http://www.foxtable.com/bbs/index.asp) -- 专家坐堂 (http://www.foxtable.com/bbs/list.asp?boardid=2) ---- [求助]二维码设置 (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=145138) |
-- 作者:OKK -- 发布时间:2020/1/9 15:41:00 -- [求助]二维码设置 请问,如何在二维码中设置直接跳转的网页,就是扫描后即刻跳转 |
-- 作者:有点蓝 -- 发布时间:2020/1/10 8:48:00 -- 扫描后获取网页地址,然后使用js跳转: wx.ready(function () { document.getElementById(\'scan\').onclick = function () { wx.scanQRCode({ needResult: 1, scanType: [\'qrCode\',\'barCode\'], success: function (res) { location= res.resultStr; } }); }; }); wx.error(function (res) { //alert(res.errMsg); }); |