码迷,mamicode.com
首页 > 微信 > 详细

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

时间:2015-02-02 15:26:03      阅读:733      评论:0      收藏:0      [点我收藏+]

标签:

<!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>

  

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

标签:

原文地址:http://www.cnblogs.com/zendwang/p/4267782.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!