app下载判断手机是安卓还是苹果

<!DOCTYPE html>
<html class="pixel-ratio-2 retina android android-6 android-6-0">
<head lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1, maximum-scale=1.0" />
<meta content="application/xhtml+xml;charset=UTF-8"
	http-equiv="Content-Type" />
<meta content="telephone=no, address=no" name="format-detection" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style"
	content="black-translucent" />
<title>App下载</title>
<link rel="stylesheet" type="text/css" href="files/jquery-weui.min.css">
<style type="text/css" >
		body{
            background: url(img/X-04.png);
		    background-size: 100%;
		    background-repeat: no-repeat;
		    position: absolute;
        }
        .center {
		  	position: fixed;
		  	top: 50%;
		  	left: 50%;
		  	width:50%;
		  	height: 50%;
		  	-webkit-transform: translateX(-50%) translateY(-50%);
		}
</style>
<script src="files/jquery-1.10.2.js"></script>
<script src="files/jquery.min.js"></script>
<script src="../js/tools.js"></script>
<script type="text/javascript" src="files/jquery-weui.min.js"></script>
<script type="text/javascript" src="files/city-picker.min.js"></script>

</head>
<body>
	<div class="center">
		<div style="text-align: center;">
			<img id="ios" οnclick="downios()" src="img/X-02.png" style="width:100%;margin-top:115%";>
		</div>
		<div style="text-align: center;">
			<img id="and" οnclick="downand()" src="img/X-03.png" style="width:100%;margin-top:15%";>
		</div>
	</div>
	<script>
	
	  $(document).on("click","#ios",function(){
		  var u = navigator.userAgent, app = navigator.appVersion;   
		  var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端   
		  if(isiOS){
			  location.href = downAppIos;
		  }else{
			  alert('仅IOS设备可用');  
		  }
      })
       $(document).on("click","#and",function(){
    	   var u = navigator.userAgent, app = navigator.appVersion;   
    	   var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //android终端或者uc浏览器   
    	if(isAndroid){
    		location.href = downAppAnd;
    	}else{
    		alert('仅安卓设备可用');  
    	}
      })
	</script>
</body>
</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值