This commit is contained in:
vickihe
2019-09-12 15:56:30 +08:00
parent 73f7ed89d0
commit a30f27feef
17 changed files with 816 additions and 238 deletions

View File

@@ -0,0 +1,18 @@
function deleteData(){
if(confirm('确定要注销ID为'+$('#pId').val()+'的老人吗?')){
$.ajax({
url: 'http://39.105.65.209:8080/parent/delete/'+$('#pId').val(),
type: 'delete',
success: function(data){
alert('删除成功');
window.location.href="firstPage.html";
},
error: function(){
alert('请求失败,请重试')
}
})
}
else{
}
}