1.判断360

极速还是兼容

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