码迷,mamicode.com
首页 > Web开发 > 详细

JQuery发送Put、Delete请求 - 摘自网络

时间:2015-08-10 19:37:04      阅读:202      评论:0      收藏:0      [点我收藏+]

标签:

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 ) {
   }
});

JQuery发送Put、Delete请求 - 摘自网络

标签:

原文地址:http://www.cnblogs.com/haoliansheng/p/4718843.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!