0
点赞
收藏
分享

微信扫一扫

判断是不是 android __ ios

凯约 2023-02-23 阅读 53


var g_sUA = navigator.userAgent.toLowerCase();
var android = g_sUA.match(/(android)\s+([\d.]+)/);
var ios = g_sUA.match(/(ipad|iphone|ipod).*os\s([\d_]+)/);
if(android || ios){
location.href = 'http://m.qzone.com/l?sid='+getHttpParams('sid')+'&g_f='+getHttpParams('g_f')+'&groupid=17&g=145';
} else {
location.href = 'http://rc.qzone.qq.com/myhome?action=auto_popup_checkin&checkin_groupid=17&checkin_source=song';
}
return;

 

举报

相关推荐

0 条评论