折腾了两天的微信一键关注(一个二维码搞定关注、下载和其他任务),各种尝试终于修成正果!

目前在android手机测试均通过哦!

<script type="text/javascript">      $(document).ready(function(){   var ua = (navigator.userAgent || navigator.vendor || window.opera);   if (ua!=null) {    var uaName = ua.toLowerCase();      if(uaName.indexOf("windows nt")==-1){                     //关注微信 window.location.href = "weixin://addfriend/u17_com"; setTimeout(judge(uaName),1500);   setTimeout(function(){           window.location.href = "http://www.u17.com?after=download-app";         },2000);         }else{                window.location.href = "http://www.u17.com?ua=pc";        }       }             });           function judge(uaName){                if (/android/i.test(uaName)){         setTimeout(function(){                 window.location.href="http://app.u17.com/android/phone/download.php";                // closeWin();                    },1000);            }else if(/iPhone/i.test(uaName)){setTimeout(function(){                 window.location.href="https://itunes.apple.com/cn/app/you-yao-qi-man-hua/id557522169?mt=8";               //  closeWin();                    },1000);     }else if(/iPad/i.test(uaName)){setTimeout(function(){                 window.location.href="https://itunes.apple.com/cn/app/id638588509?mt=8";                // closeWin();                    },1000);}           }</script>

iPhone手机的关注链接正在进行各种尝试哈~

更多相关文章

  1. Android如何通过手机自动获取短信验证码
  2. Android(安卓)libphonenumber Demo 手机号码归属地
  3. Android平台的手机记账应用开发教程
  4. Android(安卓)Toast 部分手机无法显示问题(如小米手机)解决
  5. android调用手机摄像头拍照
  6. 获取手机联系人数据方法
  7. Android(安卓)截取手机屏幕两种实现方法
  8. android 兼容性测试
  9. JS 解决安卓手机输入框被软键盘遮住的问题

随机推荐

  1. 【Android】java.lang.SecurityException
  2. Android测试之Monkey原理及源码分析(二)
  3. Android开发之中英文切换
  4. Android下快速提取ndk crash日志的命令
  5. Android NDK 的学习之旅-----HelloWorld
  6. Android Asynchronous Http Client 中文
  7. android开发专题系列-Android开发指南
  8. material design 的android开源代码整理
  9. Android(安卓)在 Fragment 中集成 React-
  10. android使用xml实现虚线效果