<!DOCTYPE HTML><html lang="zh-CN"><head>    <meta charset="UTF-8">    <title>手机APP下载页面:根据终端辨别下载地址</title>    <script type="text/javascript">        // 获取终端的相关信息        var Terminal = {            // 辨别移动终端类型            platform : function(){                var u = navigator.userAgent, app = navigator.appVersion;                return {                    // android终端或者uc浏览器                    android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1,                    // 是否为iPhone                    iPhone: u.indexOf('iPhone') > -1 ,                    // 是否iPad                    iPad: u.indexOf('iPad') > -1                };            }(),            // 辨别移动终端的语言:zh-cn、en-us、ko-kr、ja-jp...            language : (navigator.browserLanguage || navigator.language).toLowerCase()        }        // 根据不同的终端,跳转到不同的地址        var theUrl = '1232';        if(Terminal.platform.android){            theUrl = 'http://xzzh.xiaoyou-game.com/a';        }else if(Terminal.platform.iPhone){            theUrl = 'http://xzzh.xiaoyou-game.com/b';        }        location.href = theUrl;    </script></head><body>    <!--        有啥问题,请直接到这里来反馈:http://www.baidu.com/    --></body></html>

更多相关文章

  1. js判断用户手机是IOS还是安卓
  2. js判断浏览器所在的客户端类型
  3. Javascript判断浏览器终端是安卓Android还是苹果iOS
  4. Ubuntu 及windows 环境下android(Launcher)源码下载
  5. android中Http访问时 connection.getResponseCode()不被执行
  6. JS判断手机操作系统(ios或android)并跳转到不同下载页面
  7. JS获取移动端系统信息(操作系统、操作系统版本、横竖屏状态、设
  8. android 绑定arp
  9. 通用(任何android机型)Root教程(完整版!附砖机自救方法)

随机推荐

  1. Android教程之Android(安卓)SDK1.5模拟器
  2. Android高手进阶教程(七)之----Android(
  3. android 定时器的实现 (转)
  4. ImageView的android:maxHeight,android:mi
  5. Android基础概念
  6. Android(安卓)众多的布局属性详解
  7. 系出名门Android(9) - 数据库支持(SQLite
  8. 转载——android 有用的知识
  9. android:属性 layout_alignParentRight an
  10. android 导入项目报错