猿问

如何在jQuery中发送PUT/DELETE请求?

如何在jQuery中发送PUT/DELETE请求?

GET:$.get(..)

POST:$.post()..

关于PUT/DELETE?


不负相思意
浏览 2432回答 3
3回答

小唯快跑啊

你可以用阿贾克斯方法:$.ajax({     url: '/script.cgi',     type: 'DELETE',     success: function(result) {         // Do something with the result     }});

拉风的咖菲猫

$.ajax会有用的。$.ajax({    url: 'script.php',    type: 'PUT',    success: function(response) {      //...    }});
随时随地看视频慕课网APP

相关分类

JQuery
我要回答