JS判断微信ios或android不同终端并跳转到不同下载页面(一个网址实现多终端下载)

发布时间: 2016-10-28 11:33:59 来源: 未知
直接看代码 html格式 htmlheadmeta charset="utf-8"meta http-equiv="Pragma" content="no-cache"meta http-equiv="Cache-Control" content="no-cache"meta http-equiv="Expires" content="0"title二维码下载/title/headstyle type="text/css"bod
直接看代码 html格式
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">	<title>二维码下载</title>
</head>
<style type="text/css">
body{padding: 0;font-size: 18px;text-align: center;}
</style>
<body>
<p>正在跳转下载.....</p>
<script type="text/javascript">
function iOS()
{
return /iPhone|iPad|iPod/i.test(navigator.userAgent)
}
		function isWeiXin()
			{
				var ua = window.navigator.userAgent.toLowerCase();
				if(ua.match(/MicroMessenger/i) == 'micromessenger'){
					return true
				}else{
					return false;
				}
			}
		if(isWeiXin()){
			    iOS()?window.location.href = "http://a.app.qq.com/qq市场" : window.location.href = "http://a.app.qq.com/qq市场";
			}else{
			    iOS()?window.location.href="https://itunes.apple.com/苹果商店":window.location.href="http://安卓本地下载地址.apk";
			}
</script>
</body>
</html>	
推荐内容
  • html asp php txt等文件字符替换器1.01

    html asp php txt等文件字符替换器1.01 大批量替换非常好用,本工具轻巧,使用简单 也算一大神器。一直在使用分享给大家 下载地址 https://yunpan.cn/cMXkG8MeeRLky 访问密码 8cfd

  • 设置花生壳动态域名软件 实现二级路由内网访问

    互联网之间需要实现互访,就必须借助公网 IP ,但是由于 IPv4 时代 IP 资源严重匮乏,对于中小企业和个人用户来说购买固定 IP 或者公网 IP 成本高昂。因此,动态域名解析技术便是最简

  • 免费DDOS攻击测试工具大合集

    DoS(Denial Of Service)攻击是指故意的攻击网络协议实现的缺陷或直接通过野蛮手段残忍地耗尽被攻击对象的资源,目的是让目标计算机或网络无法提供正常的服务或资源访问,使目标系统服

  • 安卓手机端远程桌面Microsoft Remote Desktop

    满足基本需求。 触屏滑动,双击确定(相等于鼠标左键) ,双指点击菜单(相等于鼠标右键) 下载地址: http://pan.baidu.com/share/link?shareid=3862147968uk=1865738696