/*
* PC/移动浏览器判断:
*/
try {
var urlhash = window.location.hash;
if (!urlhash.match("fromapp")) {
if ((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i))) {
if (getQueryString("touch") == null) {
window.location = "http://m.93job.com/";
}
}
}
}
catch (err) {
window.location = "http://www.93job.com";
}
//获取url参数
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
}
手机浏览器访问PC网站自动跳转
最新推荐文章于 2022-06-22 11:25:18 发布