jQuery jQuery.support Özellik
Örnek
Tarayıcının bir XMLHttpRequest nesnesi oluşturup oluşturamayacağını test edin:
$(document).ready(function(){
$("p").html("This browser can create XMLHttpRequest object: " + jQuery.support.ajax);
});
Tanım ve Kullanım
jQuery.support özelliği, farklı tarayıcı özelliklerini veya hatalarını temsil eden bir özellikler koleksiyonu içerir.
Bu özellik, öncelikle jQuery'nin dahili kullanımı için tasarlanmıştır.
Sözdizimi
jQuery.support.propvalue
Parameter | Description |
---|---|
propvalue | Required. Specifies the function to test for. The tests included are:
|