js控制移动PC整站适配
try {
var test = window.location.pathname;
var urlhash = window.location.hash;
var locationurl = "http://m.域名.com"
if (!urlhash.match("fromapp")) {
if ((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i))) {
window.location = locationurl + test;
}
}
} catch (err) {}
console.log("有限公司");