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('删除成功')
}
}
})
}
网友评论