首页 > 其他 > 详细

HTTP_USER_AGENT

时间:2014-08-08 01:34:54      阅读:336      评论:0      收藏:0      [点我收藏+]

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Welcome to nginx!</title>
</head>
<body>
<h2>php $_SERVER[‘HTTP_USER_AGENT‘]</h2>
<p>
<?php
echo $_SERVER[‘HTTP_USER_AGENT‘];
?>
</p>
<h2>js navigator.userAgent</h2>
<p>
<script>
document.write(navigator.userAgent);
</script>
<p>
<!--[if lte IE 6]>
<p>lte ie6</p>
<![endif]-->
<!--[if lte IE 7]>
<p>lte ie7</p>
<![endif]-->
<!--[if lte IE 8]>
<p>lte ie8</p>
<![endif]-->
<!--[if lte IE 9]>
<p>lte ie9</p>
<![endif]-->
</body>
</html>

HTTP_USER_AGENT,布布扣,bubuko.com

HTTP_USER_AGENT

原文:http://www.cnblogs.com/upshania/p/3898274.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!