You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
改一下版本号的正则表达式不是更简单吗?
var aMat = sAgent.toString().match(/android ([0-9].[0-9])/i);
这句话改为
var aMat = sAgent.toString().match(/android (([0-9]).?[0-9]?)/i);
Activity
uhowep commentedon Dec 22, 2018
thanks so much
zc422 commentedon Dec 22, 2018
@uhowep happy to help you
LLprince commentedon Dec 29, 2018
666,thanks
LLprince commentedon Dec 29, 2018
@zc422
zc422 commentedon Dec 29, 2018
@LLprince 😄
xiaoxiaoyisheng commentedon Feb 21, 2019
改一下版本号的正则表达式不是更简单吗?
var aMat = sAgent.toString().match(/android ([0-9].[0-9])/i);
这句话改为
var aMat = sAgent.toString().match(/android (([0-9]).?[0-9]?)/i);
spencer17x commentedon Feb 28, 2019
试了还是不行,二维码是能生成,但是长按没反应
zc422 commentedon Feb 28, 2019
@XuZpeng ,在微信里长按没反应吗?
zc422 commentedon Feb 28, 2019
@xiaoxiaoyisheng 当时没管那么多。🤔
spencer17x commentedon Feb 28, 2019
@zc422 是的,就安卓9就不行,其他都行,二维码是正常生成了的,之前也是正常,升级了系统就凉了
zc422 commentedon Feb 28, 2019
@XuZpeng 方便发代码来看下吗
spencer17x commentedon Feb 28, 2019
js:
new QRCode($('.qrcode')[0], {
text: "https://xcx.hexiaoxiang.com/cup_race?refer_id=" + refer_id + "&record_id=" + record_id,
width: 128,
height: 128
});
html:
spencer17x commentedon Feb 28, 2019
@zc422
function _getAndroid() {
var android = false;
var sAgent = navigator.userAgent;
源码我都试了还是不行。。
spencer17x commentedon Feb 28, 2019
作者为啥不把修复过的代码添加到仓库里,我看仓库里的代码还是旧的。
xikedafeige commentedon Mar 11, 2019
@我跟他一样的问题
13 remaining items