判断pc 端环视 移动端

<script type="text/javascript">
if(navigator.userAgent.indexOf('Mobile') != -1){
console.log("app");
}else{
window.location.href="web_download.html";
console.log("web");

}

posted @ 2016-08-01 17:16  fnncat  阅读(134)  评论(0)    收藏  举报