AjaxがDELETEリクエストを送信
484 ワード
btn1: function() {
$.ajax({
type:'post',
url: url,
data:{
name:' ',
_method: 'DELETE'
},
dataType: 'json',
contentType: "application/x-www-form-urlencoded;charset=utf-8",
success: function(data){
if(data.status==200){
alert(' ')
}
}
})
}