$(document).on('click', '.delbtn', function() {
        if (confirm("确定要删除吗?")) {
            var adminid=$(this).attr("class").split("d")[0].trim();
            $.ajax({
                url : "/adm/deladmin.shtml",
                data : {
                    'adminid':adminid
                },
                type : "POST",
                success : function(result) {
                    if(result){
                        $("#"+adminid).hide();
                    }
                },
                error : function(request) {
                    alert("sorry!");
                }
            }, "json");
        }

 

相关文章:

  • 2021-10-03
  • 2021-09-29
  • 2021-12-03
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
猜你喜欢
  • 2022-02-05
  • 2022-02-10
  • 2022-02-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案