Ajax-Low-Level Interface

Ajax-Low-Level Interface


A, jQuery.ajax ()

This is the basic method ajax, there are two ways overload

jQuery.ajax( string url [, PlainObject settings ] )

jQuery.ajax( [PlainObject settings ] )

Focuses on the use of settings, refer to jQuery.ajax ()

Tips: What is PlainObject

PlainObject Javascript object is also one kind, established by the braces {}, the value zero, and the key-value.

二、jQuery.ajaxPrefilter()

Ajax processing customized options, or modify existing options. It will be transmitted and a $ .ajax each of Ajax in claim pretreatment ().

General will not go to use jQuery.ajaxPrefilter (), it lists some of the relevant reference

Low-level interface: jQuery.ajaxPrefilter ()

jQuery.ajaxPrefilter()

Three, jQuery.ajaxSetup ()

Ajax request for the next set of default values. Not recommended for use.

General will not go to use jQuery.ajaxSetup (), it lists some of the relevant reference

Low-level interface: jQuery.ajaxSetup ()

http://api.jquery.com/jQuery.ajaxSetup/

Four, jQuery.ajaxTransport ()

The establishment of a real object is responsible for the transmission of data Ajax.

General will not go to use jQuery.ajaxTransport (), it lists some of the relevant reference

Low-level interface: jQuery.ajaxTransport ()

http://api.jquery.com/jQuery.ajaxTransport/

Original: Big Box  Ajax-Low-Level Interface


Guess you like

Origin www.cnblogs.com/chinatrump/p/11458280.html