摘要: 浅谈JSON.parse()、JSON.stringify()和eval()的作用 相信大家对于JSON应该不陌生,度娘对这个名词的解释大致如下: “JSON(JavaScript Object Notation) 是一种轻量级的数据交换格式。它基于ECMAScript的一个子集。因为采用独立于语言 阅读全文
posted @ 2019-03-06 20:30 Code麒麟 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-03-05 11:19 Code麒麟 阅读(839) 评论(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麒麟 阅读(86) 评论(0) 推荐(0) 编辑
摘要: $(function(){ // 全选 $("#全选框的ID").click(function () {$("input[name='其他的复选框的name']").prop("checked", this.checked);}); // 反选选$("#反选选框的ID").click(functio 阅读全文
posted @ 2019-02-27 20:54 Code麒麟 阅读(205) 评论(1) 推荐(0) 编辑
摘要: [HttpPost] //[ValidateInput(false)] public IActionResult AddProInfo(ProductInfo productInfo, IFormFileCollection ProductImg) { ///获取富文本 productInfo.... 阅读全文
posted @ 2019-02-22 19:07 Code麒麟 阅读(1033) 评论(0) 推荐(0) 编辑
摘要: context.Response.ContentType = "text/plain; charset=utf-8"; -------此方法只能输出文本 Response.WriteAsync("", Encoding.GetEncoding("GB2312")); 阅读全文
posted @ 2019-02-21 13:51 Code麒麟 阅读(1516) 评论(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麒麟 阅读(493) 评论(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麒麟 阅读(360) 评论(0) 推荐(0) 编辑
摘要: $(function () { $(":checkbox").click(function () { //设置当前选中checkbox的状态为checked $(this).attr("checked", true); $(this).siblings().attr("checked", false 阅读全文
posted @ 2019-01-28 08:29 Code麒麟 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 但是在服务器上安装.net4.6后仍然提示编译出错。 解决方法:打开解决方案NuGet包管理器,卸载一个叫“Microsoft.CodeDom.Providers.DotNetCompilerPlatform”的包,之后重新编译网站,发现Bin目录下没有roslyn文件夹了! 阅读全文
posted @ 2019-01-25 10:37 Code麒麟 阅读(112) 评论(0) 推荐(0) 编辑