請(qǐng)問(wèn)正式項(xiàng)目中前端怎么設(shè)置put delete這類的方法呢
老師使用的是dchp工具對(duì)http 方法做限定的,那么正式項(xiàng)目中前端是怎么設(shè)置put這個(gè)方法的呢?這種情況沒(méi)遇見(jiàn)過(guò)呃,求指教……^_^
老師使用的是dchp工具對(duì)http 方法做限定的,那么正式項(xiàng)目中前端是怎么設(shè)置put這個(gè)方法的呢?這種情況沒(méi)遇見(jiàn)過(guò)呃,求指教……^_^
2017-08-20
舉報(bào)
2017-09-06
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 ) {
? }});