JQuery operation basic operation three learning notes ajax two

  $. Get (URL, [DATA], [CALLBACK], [TYPE]) Enter information by remote HTTP GET; this is a high-level implementation of $ .ajax. Parameter Description    
URL Send Required Address

DATA to send a key / value parameter

TYPE Returns the content format, XML, HTML, Script, JSON, Text, _default

Callback requests successful callback function. Parameter: Returned by the server and processed data according to the TYPE parameter

 Example: $. Get ("TestServlet", {Name: "john", Time: " 2PM "}, function (data) {Alert (" Data Loaded: "+ DATA);});     
© Copyright Notice
THE END
Just support it if you like
like0
share
comment Grab the couch

Please log in to comment