//点击下载按钮判断 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 = '安卓下载地址' } },