<!Doctype html>
<html>
<head>
<title>判断手机或者电脑</title>
<script>
window.location.href = /Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent) ? "https://www.baidu.com/" : "http://news.baidu.com/";
</script>
</head>
<body>
</body>
</html>
javascript判断移动端还是PC端
最新推荐文章于 2024-08-30 16:13:36 发布