当前位置:网站首页>Is the client that gets the scanning code wechat or Alipay
Is the client that gets the scanning code wechat or Alipay
2022-06-25 09:04:00 【youliroam】
Whether the client to scan the code is wechat or Alipay
Produced QR code :

1) This is how Alipay scans the code

2) Wechat scanning code comes in like this

3) The mobile phone comes with a browser to scan the code

4) The mobile Google browser opens like this

5) The computer Google browser opens like this

The code is as follows :
$(function(){
let client = getClient();
alert(client);
})
function getClient(){
let userAgent = navigator.userAgent.toLowerCase();
alert(userAgent);
if(userAgent.indexOf('micromessenger') != -1){
return 'wechat';
}else if(userAgent.indexOf('alipayclient') != -1){
return 'alipay';
}
if (/ipad|iphone|midp|rv:1.2.3.4|ucweb|android|windows ce|windows mobile/.test(userAgent)) {
return 'mobile';
} else {
return 'computer';
}
}
边栏推荐
- Unity--configurable joint -- a simple tutorial to get you started with configurable joints
- 《乔布斯传》英文原著重点词汇笔记(二)【 chapter one】
- WebGL发布之后不可以输入中文解决方案
- Emergency administrative suspension order issued Juul can continue to sell electronic cigarette products in the United States for the time being
- 【OpenCV】—输入输出XML和YAML文件
- Stimulsoft ultimate presents reports and dashboards
- [MySQL] understanding and use of indexes
- 3 big questions! Redis cache exceptions and handling scheme summary
- Explanation of assertions in JMeter
- 2、 Training fashion_ MNIST dataset
猜你喜欢

某次比赛wp

Exchange: manage calendar permissions

atguigu----17-生命周期

¥3000 | 录「TBtools」视频,交个朋友&拿现金奖!

When unity released webgl, jsonconvert Serializeobject() conversion failed

LVS-DR模式单网段案例

Oracle-单行函数大全

The city chain technology platform is realizing the real value Internet reconstruction!

Matplotlib simple logistic regression visualization

wav文件(波形文件)格式分析与详解
随机推荐
RTOS 多线程下hardfault问题总结
《乔布斯传》英文原著重点词汇笔记(六)【 chapter three 】
The first techo day Tencent technology open day, 628 waiting for you!
Analysis of a video website m3u8 non perceptual encryption
对常用I/O模型进行比较说明
(translation) the use of letter spacing to improve the readability of all capital text
Unity--configurable joint -- a simple tutorial to get you started with configurable joints
CSV parameterization in JMeter
5、 Project practice --- identifying man and horse
Notes on key words in the original English work biography of jobs (II) [chapter one]
RMB 3000 | record "tbtools" video, make a friend and get a cash prize!
某次比赛wp
Notes on key words in the original English work biography of jobs (IV) [chapter two]
【OpenCV】—输入输出XML和YAML文件
Lvs-dr mode multi segment case
Oracle one line function Encyclopedia
Notes on key words in the original English work biography of jobs (III) [chapter one]
Numpy numpy中的meshgrid()函数
C#程序终止问题CLR20R3解决方法
Are the top ten securities companies at great risk of opening accounts and safe and reliable?