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

 

posted on 2020-03-17 09:39  刘世涛6192  阅读(6824)  评论(1编辑  收藏  举报