<!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
推荐阅读
- lims-用户权限管理(QA)
- lims-erd-基础静态数据
- lims-wf
- Python中multiprocessing.Pool运行带多个参数的函数
- SQL 使用inner join联合查询两张表
- 【论文阅读】FASPell: A Fast, Adaptable, Simple, Powerful Chinese Spell Checker Based On DAE-Decoder Paradigm
- pytorch 加载预训练模型 core dumped
- telnet 命令使用方法详解,telnet命令怎么用?
- 使用PHP+Swoole实现的网页即时聊天工具:PHPWebIM
- CentOS下用于查看系统当前登录用户信息的4种方法