实现PUT
$.ajax({
url: "http://localhost:10320/api/Person/4",
type: "POST",
data: JSON.stringify(whatever),
headers: {
"Content-Type": "application/json",
"X-HTTP-Method-Override": "PUT" }, //PUT,DELETE
})
实现DELETE
$.ajax({
url: '/test',
type: 'DELETE',
data: {}
});