//查看当前设备
const str = navigator.userAgent
//电脑端和安卓手机跳转window.open
if (str.indexOf("Windows") != -1 || str.indexOf("Android") != -1) {
setTimeout(function () { window.open('https://www.kuaidi100.com/'); }, 1000);
} else {
//苹果手机跳转window.location.href
setTimeout(function () { window.location.href = 'https://www.kuaidi100.com/'; }, 1000);
}
跳转新窗口
最新推荐文章于 2024-10-09 20:10:15 发布