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 ) { } });
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 ) { } });
转载于:https://www.cnblogs.com/haoliansheng/p/4718843.html