if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) { window.location.href = "移动路径"; } else { window.location.href = "pc路径""; }