日期:2014-05-16 浏览次数:20379 次
var deviceAgent = navigator.userAgent.toLowerCase();
var agentID = deviceAgent.match(/(iphone|ipod|ipad|android)/);
if(agentID){
if(agentID.indexOf("iphone")>=0 || agentID.indexOf("ipod")>=0 || agentID.indexOf("ipad")>=0 || agentID.indexOf("android")>=0){
window.location="index-m.html";
}
else{
window.location="index-pc.html";
}
}
else{
window.location="index-pc.html";
}