摘要: RouteConfig里面加一个 routes.MapRoute( name: "Download", url: "" ); 然后用ajax 访问Execl 运行的 public string OutAllCompany() { Dictionary<string, string> execl = 阅读全文
posted @ 2019-03-12 16:43 Code麒麟 阅读(154) 评论(0) 推荐(0)
摘要: window.parent.location.reload(); location.reload(true); 相当于F5刷新页面 阅读全文
posted @ 2019-03-08 21:22 Code麒麟 阅读(731) 评论(0) 推荐(0)
摘要: 浅谈JSON.parse()、JSON.stringify()和eval()的作用 相信大家对于JSON应该不陌生,度娘对这个名词的解释大致如下: “JSON(JavaScript Object Notation) 是一种轻量级的数据交换格式。它基于ECMAScript的一个子集。因为采用独立于语言 阅读全文
posted @ 2019-03-06 20:30 Code麒麟 阅读(238) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-03-05 11:19 Code麒麟 阅读(862) 评论(0) 推荐(0)
摘要: <script> function Quan() { $("input[type='checkbox']").each(function () { this.checked = true;}) } function Fan() { $("input[type='checkbox']").each(f 阅读全文
posted @ 2019-02-27 21:21 Code麒麟 阅读(93) 评论(0) 推荐(0)
摘要: $(function(){ // 全选 $("#全选框的ID").click(function () {$("input[name='其他的复选框的name']").prop("checked", this.checked);}); // 反选选$("#反选选框的ID").click(functio 阅读全文
posted @ 2019-02-27 20:54 Code麒麟 阅读(216) 评论(1) 推荐(0)
摘要: [HttpPost] //[ValidateInput(false)] public IActionResult AddProInfo(ProductInfo productInfo, IFormFileCollection ProductImg) { ///获取富文本 productInfo.... 阅读全文
posted @ 2019-02-22 19:07 Code麒麟 阅读(1067) 评论(0) 推荐(0)
摘要: context.Response.ContentType = "text/plain; charset=utf-8"; -------此方法只能输出文本 Response.WriteAsync("", Encoding.GetEncoding("GB2312")); 阅读全文
posted @ 2019-02-21 13:51 Code麒麟 阅读(1645) 评论(0) 推荐(0)
摘要: public void SetCookies(string key, string value, int minutes = 30) { HttpContext.Response.Cookies.Append(key, value, new CookieOptions { Expires = Dat... 阅读全文
posted @ 2019-02-18 16:08 Code麒麟 阅读(516) 评论(0) 推荐(0)
摘要: @model Back.Model.ProductInfo@{ Layout = null;}<!DOCTYPE html><html><head> <meta charset="utf-8" /> <title>添加商品信息</title> <meta name="author" content= 阅读全文
posted @ 2019-01-28 16:00 Code麒麟 阅读(374) 评论(0) 推荐(0)