首页 > Web开发 > 详细

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

时间:2015-08-10 19:34:38      阅读:205      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!