客户端判断
userAgent = navigator.userAgent.toLowerCase(); isAndroid = (userAgent.indexOf("Android") > -1 ||userAgent.indexOf("android") > -1); isiPad = userAgent.indexOf("ipad") >= 0; isiPhone = (navigator.platform.indexOf("iPhone") != -1) || (navigator.platform.indexOf("iPod") != -1); isWeixin = userAgent.indexOf("micromessenger") >= 0; isWeibo = userAgent.indexOf("weibo") >= 0; (function(){ if(/iphone|nokia|sony|ericsson|mot|samsung|sgh|lg|philips|panasonic|alcatel|lenovo|cldc|midp|wap|android|iPod/i.test(navigator.userAgent.toLowerCase())){ document.location.href = 'http://114.80.151.109/spa/m/20150714/p2/'; } })();