jQuery jQuery.supportProperties

jQuery 属性jQuery Properties

Examples

Test whether the browser can create an XMLHttpRequest object:

$(document).ready(function(){
$("p").html("This browser can create XMLHttpRequest object: " + jQuery.support.ajax);
});

Try it yourself »

Definition and Usage

The jQuery.support property contains a set of properties representing different browser features or bugs.

This property is mainly used internally by jQuery.


Syntax

jQuery.support.propvalue

Parameters Description
propvalue Required. Specifies the features to test. These tests include:
  • ajax
  • boxModel
  • changeBubbles
  • checkClone
  • checkOn
  • cors
  • cssFloat
  • hrefNormalized
  • htmlSerialize
  • leadingWhitespace
  • noCloneChecked
  • noCloneEvent
  • opacity
  • optDisabled
  • optSelected
  • scriptEval()
  • style
  • submitBubbles
  • tbody


jQuery 属性jQuery Properties

Other extensions