$(function () {
            $(".btn-download").click(function () {
                var u = navigator.userAgent;
                var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
                var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
                if (isAndroid) {
                    location.href = "http://static.tuicaiba.com/app/V1.5.5/tuicaiba-1.5.5-tuicaiba.apk";
                }
                else if (isiOS) {
                    location.href = "itms-apps://itunes.apple.com/app/id你的appid";
                }
            })
        });

更多相关文章

  1. android中的/system/bin/input工具
  2. mac版 android破解软件下载安装
  3. 【ubuntu】Ubuntu中Android(安卓)SDK下载跟配置
  4. Android上超级好用的前端调试方法(adb reverse)
  5. 暂时遗忘OSGi,让我们去品味一杯android磨出的移动互联网咖啡吧
  6. android车载终端开发--------can 总线移植
  7. js判断访问浏览器是安卓还是ios还是微信浏览器还是微博
  8. android studio3.5.2打包,解决建议使用 "keytool -importkeystore
  9. 如何判断用户用的是Android手机还是IOS手机

随机推荐

  1. gallery 显示文字
  2. USB UMS MTP设置过程 (二) UsbDeviceManage
  3. 关于Android(安卓)ListView组件中android
  4. Android(安卓)build system
  5. Xamarin.Forms Android登录闪图
  6. Android读写文件
  7. SeekBar 和 RatingBar
  8. android--系统路径获取
  9. 自定义组件研究
  10. android grantRuntimePermission 详解