BootStrap实现带有增删改查功能的表格(DEMO详解)(4)

<div> <div> <div> <div> @*按钮*@ <div> @*添加按钮*@ <span> <a href="https://www.jb51.net/AddEduInfo/AddEduInfo">添加</a> </span> @*修改*@ <span> <a href="https://www.jb51.net/AddEduInfo/AddEduInfo">修改</a> </span> @*删除*@ @* <span data-target="#myModal" > <a >删除</a> </span>*@ <span> <button type="button" data-toggle="modal" data-target="#myModal"> 删除 </button> </span> </div> <table data-toggle="table" data-card-view="true" data-url="/StuPersonInfo/ShowEducation"> <thead> <tr> <th data-field="state" data-checkbox="true"></th> <th data-field="StartDate" data-sortable="true">开始日期</th> <th data-field="EndDate" data-sortable="true">结束日期</th> <th data-field="SchoolName" data-sortable="true">毕业学校</th> <th data-field="TeacherName" data-visible="true">证明教师</th> @* <th data-field="" data-sortable="true" data-formatter="operateFormatter" data-events="operateEvents">编 辑</th>*@ </tr> </thead> </table> </div> </div> </div> </div>

Controller代码:

#region ShowEducation() 显示教育经历 王美 2015年6月5日 /// <summary> /// 显示教育经历 /// </summary> /// <returns>教育经历Json</returns> public JsonResult ShowEducation() { //创建WCF接口 IEduInfoService EduServiceShow = ServiceFactory.GetEduInfoService(); //从缓存中获取身份证号 string IdentityCardID = (String)MemcacheHelper.Get("IdentityCardID"); //调用WCF查询方法 List<EduExperienceViewModel> listEduInfo = EduServiceShow.QueryEduInfo(IdentityCardID); //返回Json串 return Json(listEduInfo, JsonRequestBehavior.AllowGet); } #endregion

以上所述是小编给大家介绍的BootStrap实现带有增删改查功能的表格(DEMO详解),希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对脚本之家网站的支持!

您可能感兴趣的文章:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wzgxfp.html