标签:hid index bsp cpu log isa user adr roi
var u = navigator.userAgent; var isAndroid = u.indexOf(‘Android‘) > -1 || u.indexOf(‘Adr‘) > -1; //android终端 var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端 if(isAndroid){ $(‘.modal‘).remove(); $(‘.show-course‘).remove(); }else if(isiOS){ $(‘.modal‘).removeClass(‘hide‘); $(‘.show-course‘).removeClass(‘hide‘); }else{ $(‘.modal‘).addClass(‘hide‘); $(‘.show-course‘).addClass(‘hide‘); }
标签:hid index bsp cpu log isa user adr roi
原文地址:http://www.cnblogs.com/pfyblog/p/6626876.html