Jquery-Ajax樣板

  • 493
  • 0
  • 2014-09-05

JQUERY的AJAX格式樣版

 

因為常用JQUERY的AJAX 所以把他貼上來,往後要用直接複製就好
 
  $.ajax({
        url: "..路徑",
        dataType: "json",
        type: "post",
        success: function (e) {        
        },
        error: function (jqXHR, textStatus, errorThrown) { alert(jqXHR.responseText); }
    });