当前位置:网站首页>qq内拉起支付宝h5支付功能
qq内拉起支付宝h5支付功能
2022-06-11 12:26:00 【大数据真的很牛】
通过user-agent判断h5页是在哪个手机App(QQ、微信、支
付宝)下打开的
function getAppClient(){
var ua = navigator.userAgent.toLowerCase();
if(ua.match(/MicroMessenger/i)=="micromessenger") {
return "weixin";
} elseif (ua.match(/QQ/i) == "qq") {
return "QQ";
}elseif(ua.match(/AlipayClient/i) == 'alipayclient'){
return "Alipay";
}else{
...
}
}
function getAppClient(){
var ua = navigator.userAgent.toLowerCase();
if(ua.match(/MicroMessenger/i)=="micromessenger") {
这是微信
} elseif (ua.match(/QQ/i) == "qq") {
这是QQ
}elseif(ua.match(/AlipayClient/i) == 'alipayclient'){
这是支付宝
}else{
...
}
}
边栏推荐
- 2022 vmvare download and installation tutorial on the latest official website (ultra detailed)
- 秒杀多级缓存-----商品详情页
- Quel projecteur 4K est le meilleur rapport qualité - prix, quand bex3 pro met en évidence 128g Storage 618 vaut la peine de voir
- Flash framework web development video notes
- 馆客多游泳馆会员管理系统可以实现哪些场景?
- Format of Jerrys at protocol package [chapter]
- Stone technology: R & D strength and excellent quality help upgrade the sweeping robot industry
- Node creates a template file with the art template template template engine
- 7、CAS
- Splunk best practices - lighten the burden on Captain
猜你喜欢

What are the elements of running a gymnasium?

leetcode-59. Spiral matrix II JS

机械设备制造企业,如何借助ERP系统做好委外加工管理?

Oracle DatabaseLink 跨数据库连接

2、CompletableFuture

. 4 literal and variable

Installation and use of saltstack

13. Explanation of reentrantlock, reentrantreadwritelock and stampedlock

What scenarios can the member management system of the multi guest swimming pool achieve?

How about Lenovo Xiaoxin 520? Which is more worth buying than dangbei D3x?
随机推荐
JVM optimization
imx6ul开发板移植主线u-boot之EMMC启动流程
9. Parler de threadlocal
秒杀整体的技术难点
2、CompletableFuture
知物由学 | 行为时序建模在社交引流黑产识别中的应用
What are the advantages of comprehensive venues?
(recommended) how many splunks are appropriate? Search head
Shut down THP of Splunk health check
CMD of Jerry's AI protocol_ SET_ BLE_ Format of visibility command [chapter]
Jerry's aicmd command [chapter]
Moist or not? This is a problem
馆客多游泳馆会员管理系统可以实现哪些场景?
2022 vmvare download and installation tutorial on the latest official website (ultra detailed)
UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xc5 in position 13: invalid continuation byte
综合场馆的优势有哪些?
母婴店的利润来源有哪些?
Seckill multi-level cache ----- product details page
What are the elements of running a gymnasium?
2020.10.27 北京阿里大文娱一面总结