判断手机浏览器js自动跳转

  1. <script type="text/javascript">   
  2.         (function(W){   
  3.             if(/iphone|nokia|sony|ericsson|mot|samsung|sgh|lg|philips|   
  4. panasonic|alcatel|lenovo|cldc|midp|wap|   
  5. mobile/i.test(navigator.userAgent.toLowerCase())){   
  6.                 W.location.href = '跳转地址';   
  7.             }   
  8.                
  9.         })(window)   
  10. </script>  

Continue reading...



about me

  • 陶之11's Blog Name:陶之11 OICQ:14779023 Site:Pao11.com

分类

快捷入口