var ua = window.navigator.userAgent.toLowerCase();
if (ua.indexOf('android') != -1) {
location.replace('android.html');
} else if (ua.indexOf('iphone') != -1) {
location.replace('iphone.html');
}else{
location.replace('pc.html');
}
如何针对手机浏览器和桌面浏览器执行不同的JS语句
最新推荐文章于 2023-11-19 23:00:14 发布