function open_or_download_app() {
if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
window.location.href = "http://www.google.cn
";
// alert("苹果" + navigator.userAgent);
//苹果端
} else if (/(Android)/i.test(navigator.userAgent)) {
window.location = "http://www.baidu.com
";
// alert("安卓" + navigator.userAgent);
} else {
window.location = "https://www.so.com
"
// alert("pc" + navigator.userAgent);
}
};
if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
window.location.href = "http://www.google.cn
";
// alert("苹果" + navigator.userAgent);
//苹果端
} else if (/(Android)/i.test(navigator.userAgent)) {
window.location = "http://www.baidu.com
";
// alert("安卓" + navigator.userAgent);
} else {
window.location = "https://www.so.com
"
// alert("pc" + navigator.userAgent);
}
};