Several methods of jquery ----- ajax

// get method to submit, not required with the parameter data, directly incoming URL 
$ .get (URL, function (data, Status) { IF (Status == 'Success') { layer.msg (data, {Shift:. 1, Time: 2000}, function () { location.reload (); }); } the else { layer.msg (Data); } });

 

// get support submitted by post of 
$ .ajax ({ url: '/ ADMIN / category / the Sort', the async: to true, of the type: 'post', the Data: data.field, dataType: 'json', Success: function () { layer.msg ( 'modified list successful', {Shift:. 1, Time: 2000}, function () { location.reload (); }) } })

  

 

Guess you like

Origin www.cnblogs.com/dayin1/p/11551018.html