不同终端实现自动跳转到相应页面的js代码
|
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){}} } |

浙公网安备 33010602011771号