DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Documenttitle>
head>
<body onload="init()">
body>
html>
<script>
function init() {
if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) { //判断iPhone|iPad|iPod|iOS
window.location.href = "./iPhone/index.html";
// console.log(navigator.userAgent);
}
else if (/(Android)/i.test(navigator.userAgent)) { //判断Android
window.location.href = "./Android/index.html";
// console.log(navigator.userAgent);
}
else { //pc
window.location.href = "./pc/index.html";
// console.log("pc");
};
}
script>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)