restful中的put,delete如何实现呢?必须要ajax吗

2025-03-24 18:01:51
推荐回答(1个)
回答1:

1. 你的$.ajax({ url: '/script.cgi', type: 'DELETE', success: function(result) { // Do something with the result } }); 2. $.ajax会的工作。$.ajax({ url: 'script.php', type: 'PUT', success: function(response) { //... } });