xadmin-layui删除
function member_del(obj,id){
layer.confirm('确认要删除吗?',function(index){
$.get("college-del.php",{id:id}) //请求地址和ID
$(obj).parents("tr").remove();
layer.msg('已删除!',{icon:1,time:1000});
});
}
college-del.php:
$query="delete from college where id={$_GET['id']}";
$res=execute($link,$query);