div=$(this).parent(); //先获取父级元素

div.remove(); //再删除

$(".delStu").click(function () {

                       td = $(this).parent().parent();

                       if (confirm("您确认删除么")) {

                           $.ajax({

                               url: "/Demo/Student/DelStudent",

                               type: "POST",

                               data: { ID: $(this).attr('data-id') },

                               success: function (data) {

                                   if(data.msg=="删除成功");

                                   {

                                       console.log(data);

                                       td.remove();

                                   }

                               },

                               error: function () {

                                   console.log("error");

                               }

                           })





                       } else {

                           

                       }

                   });

最新文章

  1. Js中的this指向问题
  2. 问题解决——WSAAsyncSelect模型 不触发 FD_CLOSE
  3. HDU 5418 Victor and World (Floyd + 状态压缩DP)
  4. C# winfrom 模拟ftp文件管理
  5. python自学笔记(九)python练习题
  6. JListDemo
  7. UiAutomator源码分析之注入事件
  8. 关于解决“No matching provisioning profiles found”问题-ios
  9. 【WCF】错误处理(三):错误协定
  10. IIS 部署.netcore 500.19错误
  11. Android 简单记事本
  12. 工程师常犯的web后台界面用户体验错误
  13. readlink: command not found 解决方案
  14. error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
  15. csrfguard3.1 部署笔记
  16. 2.Redis五种数据结构
  17. 【转】Python 可视化神器-Plotly Express
  18. 探寻main函数的“标准”写法,以及获取main函数的参数、返回值
  19. Let it crash philosophy part II
  20. 脱离matlab运行可执行程序的步骤

热门文章

  1. JS中的toString()和valueOf()方法
  2. innobackupex基于binlog日志的恢复 -- 使用mysqlbinlog恢复
  3. hdu-1875 畅通工程再续---MST
  4. mac 下删除非空文件夹
  5. 2017.12.17 servlet 生命周期
  6. PAT (Advanced Level) Practise - 1094. The Largest Generation (25)
  7. 二十二、MySQL 正则表达式
  8. Bank Simulation Program银行管理系统C++ :)
  9. python爬虫的基本思路
  10. Python协程详解(二)