jQuery jQuery.support Properti

Properti jQuery

Contoh

Uji apakah browser dapat membuat objek XMLHttpRequest:

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

Definisi dan Penggunaan

Properti jQuery.support berisi kumpulan properti yang mewakili fitur atau bug browser yang berbeda.

Properti ini terutama ditujukan untuk penggunaan internal jQuery.


Sintaksis

jQuery.support.propvalue

Parameter Description
propvalue Required. Specifies the function to test for. The tests included are:
  • ajax
  • boxModel
  • changeBubbles
  • checkClone
  • checkOn
  • cors
  • cssFloat
  • hrefNormalized
  • htmlSerialize
  • leadingWhitespace
  • noCloneChecked
  • noCloneEvent
  • opacity
  • optDisabled
  • optSelected
  • scriptEval()
  • style
  • submitBubbles
  • tbody

Properti jQuery