if (window.navigator.userAgent.indexOf('compatible') != -1) { alert('360兼容模式'); } if(window.navigator.userAgent.indexOf('AppleWebKit') != -1) { alert('360极速模式'); }