JQuery发送Put、Delete请求 - 摘自网络
DELETE
:
$.ajax({
url: '/script.cgi',
type: 'DELETE',
success: function(result) {
// Do something with the result
}
});
PUT
:
$.ajax({
url: 'script.php',
type: 'PUT',
success: function( response ) {
}
});