参考一:
var isOnPc=!(/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent));
if(isOnPc)
{
}
else{
        window.location.href="mobile_index.html";
}
参考三:腾讯网的适配代码,通过JS语句判断WEB网站的访问端是电脑还是手机
http://www.xker.com/page/e2014/0325/131654.html