摘要: 问题:Controller中Response的用法.日后搞明白再更新. 阅读全文
posted @ 2020-08-06 17:08 留下成长的足迹 阅读(536) 评论(0) 推荐(0)
摘要: 1.$:在字符串插入值 int a = 1;int b = 2;string c = $"{a} + {b} = {a + b}";//使用$string d = string.Format("{0} + {1} = {2}", a, b, a + b);//使用Format 2.@符号.让转移字符 阅读全文
posted @ 2020-08-06 15:53 留下成长的足迹 阅读(4659) 评论(0) 推荐(1)
摘要: 参考地址:https://www.cnblogs.com/bianlan/archive/2013/01/11/2857105.html ViewData:字典类型,foreach中需要强制转换,使用时 ViewData["key"] ViewBag:动态类型, 使用时:ViewBag.key 阅读全文
posted @ 2020-08-06 12:00 留下成长的足迹 阅读(549) 评论(0) 推荐(0)
摘要: Session在Controller类中的成员,是一个HttpSessionStateBase类.在System.Web中 Cache为System.Web.Caching中 阅读全文
posted @ 2020-08-05 19:19 留下成长的足迹 阅读(397) 评论(0) 推荐(0)
摘要: 参考地址:https://www.cnblogs.com/OpenCoder/p/6208284.html using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace Exc 阅读全文
posted @ 2020-08-05 14:33 留下成长的足迹 阅读(553) 评论(0) 推荐(0)
摘要: 参考地址:https://blog.csdn.net/yiyelanxin/article/details/72778972 在Global.asax中,添加Application_Error如下代码. protected void Application_Error() { var e = Ser 阅读全文
posted @ 2020-08-03 14:38 留下成长的足迹 阅读(372) 评论(0) 推荐(0)
摘要: 数据库索引有何作用?聚集索引和非聚集索引有何区别? 阅读全文
posted @ 2020-07-27 14:46 留下成长的足迹 阅读(201) 评论(0) 推荐(0)
摘要: String缺点:每次赋值,都会改变重新分配内存地址.若字符串频繁变更,性能较差. StringBuilder分配一个缓存,初始值大小为16.也可以通过构造函数.new StringBuilder(int capacity)来确定缓存的大小.通过Append,Remove,等方法,对缓存里面的字符串 阅读全文
posted @ 2020-07-14 16:36 留下成长的足迹 阅读(122) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/u011232393/article/details/87877575?utm_medium=distribute.pc_relevant.none-task-blog-baidujs-4 阅读全文
posted @ 2020-07-10 18:53 留下成长的足迹 阅读(1193) 评论(0) 推荐(0)
摘要: 1.选中radio $("input[name='test'][value=1]").attr("checked",true); 2.取值radio $("input[name='killOrder']:checked").val(); 阅读全文
posted @ 2020-07-07 14:23 留下成长的足迹 阅读(480) 评论(0) 推荐(0)