APP下载页面(支持微信扫一扫)

时间:2015-02-02 15:26:03   收藏:0   阅读:733
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8"/>
		<title>APP 下载</title>
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	</head>
	<body>
		<script type="text/javascript">
			var UA = navigator.userAgent,devicesType = "android";
			(UA.indexOf("iPhone") > -1 || UA.indexOf("iPad") > -1) && (devicesType = "iPhone");
			if(devicesType === "android"){
				location.href = "应用下载地址";
			}
			if(devicesType === "iPhone"){
			    location.href = "应用下载地址";
			}
		</script>
	</body>
</html>

  

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!