1 2 3 4 | < script type = "text/javascript" > if(/Android|webOS|iPhone|iPod|BlackBerry|Windows CE|ipad|Windows Phone/i.test(navigator.userAgent)){ if(window.location.href.indexOf("?pc")<0){try{window.location.href="/3g/index.asp"}catch(e){}} } |
出处:http://www.myqingfeng.info/HTML/863.html
不同终端实现自动跳转到相应页面的js代码
原文地址:http://www.cnblogs.com/mxonline/p/7811817.html