jQuery jQuery.support

Exemplo

Testar se o navegador pode criar objeto XMLHttpRequest:

$ (document).ready(function () {
  $("p").html("Este navegador pode criar objeto XMLHttpRequest: ") + jQuery.support.ajax);
});

Experimente pessoalmente

Definição e uso

O jQuery.support contém um conjunto de propriedades que representam diferentes características ou vulnerabilidades dos navegadores.

Este atributo é主要用于 jQuery 的内部使用。

Sintaxe

jQuery.support.propvalue
Propriedade Descrição
propvalue

Obrigatório. Define a função a ser testada. Esses testes incluem:

  • ajax
  • boxModel
  • changeBubbles
  • checkClone
  • checkOn
  • cors
  • cssFloat
  • hrefNormalized
  • htmlSerialize
  • leadingWhitespace
  • noCloneChecked
  • noCloneEvent
  • opacidade
  • optDisabled
  • optSelected
  • scriptEval()
  • style
  • submitBubbles
  • tbody