/// <summary> /// 模板下载 /// </summary> /// <returns></returns> public ActionResult Download() { // 防IE文件名乱码 var fileName = HttpUtility.UrlEncode("模板.xlsx", System.Text.Encoding.UTF8); HttpContext.Response.AddHeader("Content-Disposition", "attachment;filename=" + fileName); return File("/Templates/a.xlsx", fileName); }