标签:按钮 roi gen 终端 判断 pdo androi || oca
//点击下载按钮判断
appDown() {
var u = navigator.userAgent;
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
var isAndroid = u.indexOf(‘Android‘) > -1 || u.indexOf(‘Adr‘) > -1; //android终端
if(isiOS){
window.location.href = ‘安卓下载地址‘
}else if(isAndroid){
window.location.href = ‘安卓下载地址‘
}
},
标签:按钮 roi gen 终端 判断 pdo androi || oca
原文地址:https://www.cnblogs.com/myfirstboke/p/9178649.html