摘要:
1、导出Excel :首先引用NPOI包(Action一定要用FileResult) /// <summary> /// 批量导出需要导出的列表 /// </summary> /// <returns></returns> public FileResult ExportStu2() { //获取l 阅读全文
摘要:
@{ ViewBag.Title = "Index"; Layout = "~/Views/Shared/_Layout.cshtml"; } Index @Html.ActionLink("导出用户", "ExportExcel") @using (@Html.BeginForm("ImportExcel", "Excel", FormMethod.Post, new... 阅读全文