这个自动识别跳转代码有问题?
- <!DOCTYPE html><html><head> <meta charset="UTF-8"/> <meta http-equiv="Cache-Control" content="no-transform"/> <meta http-equiv="Content-Language" content="zh-CN" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"><title>xxx项目</title><meta name="keywords" content="xxx项目"><meta name="description" content="xxx项目"><script>if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) { window.location.href="地址1";}else if (/(Android)/i.test(navigator.userAgent)) { window.location.href="地址2";}</script></head> <body></div></body></html>