반응형
출처: http://stackoverflow.com/questions/2153917/how-to-send-a-put-delete-request-in-jquery
$.get()하고 $.post()가 있어서 당연히 $.put()이나 $.delete()도 있을 줄 알았는데 아니였다.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | $.ajax({ url: '/script.cgi' , type: 'DELETE' , success: function (result) { // Do something with the result } }); $.ajax({ url: '/script.cgi' , type: 'PUT' , success: function (result) { // Do something with the result } }); |
반응형