000-js判断电脑或手机登录

1 <script type="text/javascript">
2 try{
3     if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){
4         window.location.href="mindex.html";
5     }else{
6         window.location.href="cindex.html";
7     }
8 }catch(e){}
9 </script>
原文地址:https://www.cnblogs.com/ninghongkun/p/5939692.html