通过JS语句判断WEB网站的访问端是电脑还是手机,以显示不同的页面!
<script>
// PC端 移动端 跳转
var is_mobi = navigator.userAgent.toLowerCase().match(/(ipod|iphone|android|coolpad|mmp|smartphone|midp|wap|xoom|symbian|j2me|blackberry|wince)/i) != null;
if (is_mobi) {
window.location.href = "mobile.html";
}else{
// window.location.href="/go.html?url=index.html"
}
</script><sc