Apple和Android是否具有用于访问支付宝的内置浏览器?

Apple支付宝Android

1个回答

写回答

angellulun

2024-09-23 05:42

+ 关注

php
php

警告:/www/wwwroot//wp-content/themes/Snape/single。php中第45行的字符串偏移量“top”1。该代码可以在Android上使用,但不适用于Apple。这两个版本的支付宝内置浏览器是否不同?请解决2。

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

?window。

onload=function(){

??????????if(isWeiXin()){

??????????alert("微信");

??????????}elseif(isZFB()){

??????????alert("支付宝");

??????????}else{

??????????alert("其他");

??????????}

??????????

????????}

????????functionisWeiXin(){

??????????varua=window。

Android
Android

navigator。userAgent。toLowerCase();

????????????if(ua。match(/MicroMessenger/i)==’micromessenger’){

??????????????returntrue;

????????????}else{

??????????????returnfalse;

??????????????}

????????}

????????functionisZFB(){

????????

??????????varua=window。

navigator。userAgent。toLowerCase();

????????????if(ua。match(/AlipayClient/i)==’alipayclient’){

??????????????returntrue;

????????????}else{

??????????????returnfalse;

????????????}

????????}这似乎是由于支付宝的安全性问题所致,这要求其经过身份验证的URL能够访问。

最后,谢谢大家也许苹果Android的UA标签不同,只是获得苹果的UA匹配!1

2

3

?functionisWeChat(){

??????returnnavigator。

userAgent。indexOf(’MicroMessenger’)!=-1?true:false;

????}Android似乎是UC,IOS应该是Safar警告:/www/wwwroot//wp-content/themes/Snape/single。

php中第49行的字符串偏移’footer’。

举报有用(17分享收藏

Copyright © 2025 IZhiDa.com All Rights Reserved.

知答 版权所有 粤ICP备2023042255号