jQuery jQuery.supportคุณสมบัติ

❮ คุณสมบัติ jQuery

ตัวอย่าง

ทดสอบว่าเบราว์เซอร์สามารถสร้างวัตถุ XMLHttpRequest ได้หรือไม่:

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

ความหมายและการใช้งาน

คุณสมบัติ jQuery.support ประกอบด้วยชุดของคุณสมบัติที่แสดงคุณลักษณะหรือจุดบกพร่องของเบราว์เซอร์ที่แตกต่างกัน

คุณสมบัตินี้มีไว้สำหรับการใช้งานภายในของ jQuerys เป็นหลัก


ไวยากรณ์

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

❮ คุณสมบัติ jQuery