Welcome to the mobile version<script><br>var ua = navigator.userAgent;<br>var US = {<br> Android:function () { //Android<br> ,<br> IOS:function(){ //IOS<br> return ua.match(/iPhone|iPad|iPod/i)?true:false;<br> },<br> //This is actually not necessary, you don’t need to judge this, after all IE is an ancient thing <br> use using using using using using using out off out out out out out out out out of ’ ’ s ’ ‐ to ‐ ‐‐‐‐‐ IE )||US.BlackBerry()||US.IOS()||US.Windows();<br> }<br>}<br>if(US.isMobile()==false){<br> window.location = "http:// www.baidu.com"; //If accessed from a computer, jump to the specified URL. Take Baidu as an example<br>}<br></script>
Welcome to the mobile version