jQueryjQuery.supportプロパティ_
例
ブラウザがXMLHttpRequestオブジェクトを作成できるかどうかをテストします。
$(document).ready(function(){
$("p").html("This browser can create XMLHttpRequest object: " + jQuery.support.ajax);
});
定義と使用法
jQuery.supportプロパティには、さまざまなブラウザ機能またはバグを表すプロパティのコレクションが含まれています。
このプロパティは、主にjQueryの内部使用を目的としていました。
構文
jQuery.support.propvalue
Parameter | Description |
---|---|
propvalue | Required. Specifies the function to test for. The tests included are:
|