老师使用的是dchp工具对http 方法做限定的,那么正式项目中前端是怎么设置put这个方法的呢?这种情况没遇见过呃,求指教……^_^
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 ) {
   }});