Javascript跳转手机站代码

$(document).ready(function(){
var mobileAgent = new Array("iphone", "ipod", "ipad", "android", "mobile", "blackberry", "webos", "incognito", "webmate", "bada", "nokia", "lg", "ucweb", "skyfire");
var browser = navigator.userAgent.toLowerCase(); 
var isMobile = false; 
for (var i=0; i<mobileAgent.length; i++){ if (browser.indexOf(mobileAgent[i])!=-1){ isMobile = true; 
window.location.href= ‘http://m.nxhmmr.cn‘; 
break; } } 
})

Javascript跳转手机站代码,布布扣,bubuko.com

Javascript跳转手机站代码

上一篇:【Android UI】色板


下一篇:Android中Javascript中的调用