jQuery thuộc tính jQuery.support

❮ Thuộc tính jQuery

Thí dụ

Kiểm tra xem trình duyệt có thể tạo đối tượng XMLHttpRequest hay không:

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

Định nghĩa và Cách sử dụng

Thuộc tính jQuery.support chứa một tập hợp các thuộc tính đại diện cho các lỗi hoặc tính năng trình duyệt khác nhau.

Thuộc tính này chủ yếu dành cho mục đích sử dụng nội bộ của jQuerys.


Cú pháp

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

❮ Thuộc tính jQuery