php在ajax中用confirm方法实现确定删除的案例

php在ajax中用confirm方法实现确定删除的案例

小编给大家分享一下php在ajax中用confirm方法实现确定删除的案例,希望大家阅读完这篇文章后大所收获,下面让我们一起去探讨吧!

<button name="del" type="button" class="btn btn-primary btn-xs" id="del">删除</button>
$("button[name=del]").click(
             statu = confirm("确定删除吗?"(!  operation = {..:'POST',:"{:url('Sections/del')}",:{idd:operation},:(msg == 1'删除成功'.'删除失败,请稍后重试',:'删除失败,请稍后重试'
    public function del()
   {
        $id=input('post.idd');
        $res = $this->section->del($id);
        echo json_encode($res);
   }
      del( = Section::destroy(['id' =>

看完了这篇文章,相信你对php在ajax中用confirm方法实现确定删除的案例有了一定的了解,想了解更多相关知识,欢迎关注行业资讯频道,感谢各位的阅读!