Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议判断是否位于微信/qq环境,微信/qq环境内无法使用scheme调起app #1

Open
linguo2625469 opened this issue Jul 27, 2021 · 1 comment

Comments

@linguo2625469
Copy link

app按钮false时才显示
is_weixn_qq(){ var ua = navigator.userAgent.toLowerCase(); if(ua.match(/MicroMessenger\/[0-9]/i)){ return "weixin"; } if(ua.match(/QQ\/[0-9]/i)){ return "QQ"; } return false; }

@lcylgs
Copy link

lcylgs commented Jul 27, 2021

还不如判断后提示用户在浏览器里打开呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants