Tag: 补丁

jQuery ajax调用是否支持PATCH?

当我发送这个ajax rquest时: $.ajax({ headers : { ‘Accept’ : ‘application/json’, ‘Content-Type’ : ‘application/json’ }, url : ‘http://localhost:8080/wutup/venues/12’, type : ‘PATCH’, data : JSON.stringify({description: “842490812321309213801923 gonzagazors”}), success : function(response, textStatus, jqXhr) { console.log(“Venue Successfully Patched!”); }, error : function(jqXHR, textStatus, errorThrown) { // log the error to the console console.log(“The following error occured: ” + textStatus, errorThrown); […]