如何判定是否手机访问自动跳转至电脑或者手机网站
<script>
var uaTest = /Android|webOS|Windows Phone|iPhone|ucweb|ucbrowser|iPod|BlackBerry/i.test(navigator.userAgent.toLowerCase());var touchTest = ‘ontouchend’ in document;if(uaTest && touchTest){window.location.href = ‘http://www.miaovv.com’;}
</script>
如何判定是否手机访问自动跳转至电脑或者手机网站