pc端与移动端的切换
<script type="text/javascript"> $(function(){ try { var urlhash = window.location.hash; if (!urlhash.match("fromapp")){ //移动端 if ((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i))){ window.location.href='/cn/index.htm'; //pc端 }else{ window.location.href='/cn/index.htm'; } } }catch(err){} }); </script>