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 ) {
   }
});
posted @ 2015-08-10 18:41  iDEAAM  阅读(4188)  评论(0编辑  收藏  举报