摘要: 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 留下成长的足迹 阅读(4532) 评论(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 留下成长的足迹 阅读(536) 评论(0) 推荐(0) 编辑
摘要: Session在Controller类中的成员,是一个HttpSessionStateBase类.在System.Web中 Cache为System.Web.Caching中 阅读全文
posted @ 2020-08-05 19:19 留下成长的足迹 阅读(383) 评论(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 留下成长的足迹 阅读(542) 评论(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 留下成长的足迹 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 数据库索引有何作用?聚集索引和非聚集索引有何区别? 阅读全文
posted @ 2020-07-27 14:46 留下成长的足迹 阅读(180) 评论(0) 推荐(0) 编辑
摘要: String缺点:每次赋值,都会改变重新分配内存地址.若字符串频繁变更,性能较差. StringBuilder分配一个缓存,初始值大小为16.也可以通过构造函数.new StringBuilder(int capacity)来确定缓存的大小.通过Append,Remove,等方法,对缓存里面的字符串 阅读全文
posted @ 2020-07-14 16:36 留下成长的足迹 阅读(117) 评论(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 留下成长的足迹 阅读(1169) 评论(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 留下成长的足迹 阅读(474) 评论(0) 推荐(0) 编辑
摘要: window: 当前窗口或框架的同义词,与self相同. document: 该对象是window和frames对象的一个属性,是显示于窗口或框架内的一个文档。 top: 包含当前框架的最顶层浏览器窗口的同义词 参考链接:https://blog.csdn.net/xiaoyingdi/articl 阅读全文
posted @ 2020-06-29 15:35 留下成长的足迹 阅读(1197) 评论(0) 推荐(0) 编辑