使用javascript跳转手机站的方法
<script type="text/javascript"> //设定Mobile的定义(全小写) 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; //alert(mobileAgent[i]); //程式码(转址) location.href = 'http://m.noteet.com/'; //停止运行回圈 break; } } </script>