摘要: 在Shared中创建一个uc/_upload.cshtml 这里面的主要的代码是 使用 @Html.Partial("uc/_upload", new UploadContent("pic", Model?.pic)) 可以在同一个页面使用多此 阅读全文
posted @ 2018-01-30 20:21 给我一个理由 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 需要过滤 CREATE TABLE wx_products_attr ( id INT IDENTITY PRIMARY KEY, productid INT, attrid INT, valueid INT ) GO insert into wx_products_attr(productid,a 阅读全文
posted @ 2018-01-26 14:13 给我一个理由 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 背景交代: 使用ajax来提交创建订单,需求是不能创建重复的订单 1. 使用js限制提交的频率 // 设置内容为可用,但是不能继续操作 $.fn.setBtnTxtEnabled = function (func) { if (!this) { throw new Error("element 不能 阅读全文
posted @ 2018-01-10 17:28 给我一个理由 阅读(1913) 评论(0) 推荐(0) 编辑
摘要: select o.name as table_name,c.name as column_name,t.name as data_type,'' as column_type,c.max_length as character_maximum_length, s.text as column_def 阅读全文
posted @ 2017-11-27 21:09 给我一个理由 阅读(631) 评论(0) 推荐(0) 编辑
摘要: protected void Application_EndRequest(object sender, EventArgs e) { // 在应用程序关闭时运行的代码 HandlerError(); } private void HandlerError() { if (HttpContext.C 阅读全文
posted @ 2017-11-20 19:27 给我一个理由 阅读(158) 评论(0) 推荐(0) 编辑
摘要: DateTime 和 TimeSpan内部都是用 long来维护一个ticks 的东西,然后能力上略有区别 DateTime 独立的能力有 获取当前时间,与utc相关的问题 TimeSpan 独立的能力应该是重写了各种+,-的操作符,因此非常方便计算diff 阅读全文
posted @ 2017-10-19 21:41 给我一个理由 阅读(254) 评论(0) 推荐(0) 编辑
摘要: # ThreadState Running StopRequested SuspendRequested Background Unstarted Stopped WaitSleepJoin Suspended AbortRequested Aborted # 基本使用 构造函数是传递两种delega... 阅读全文
posted @ 2017-10-19 21:41 给我一个理由 阅读(439) 评论(0) 推荐(0) 编辑
摘要: 1. Task.Run() StackCrawlMark stackMark=StackCrawlMark.LookForMyCaller; return Task.InternalStartNew(null,action,null,default(CancellationToken),TaskScheduler.Default,TaskCreationOptions.DenyCh... 阅读全文
posted @ 2017-10-19 21:41 给我一个理由 阅读(173) 评论(0) 推荐(0) 编辑
摘要: # Array:ICollection,IList,IStructuralComparable, IStructuralEquatable 3300行,但是只是数组的基本操作并不难理解 # 最重要的其实就是两个方法吧 BinarySearch() Sort() # 最常用的方法时 IList.this[] Copy() Length C... 阅读全文
posted @ 2017-10-19 21:40 给我一个理由 阅读(162) 评论(0) 推荐(0) 编辑
摘要: # Stack 在System.dll中,Stack在mscorlib 330行 但是我只考虑泛型所以需要调试System.dll # 在调试符号中选择添加System.dll 符号,即可进入调试,太方便了,我爱vs 就这一点,我爱你ide 看来以后选ide的标准要换了,唯一标准是能否方便的调试代码 # Stack内部 同样的动态数组 int _size; //控制数组中指针,他... 阅读全文
posted @ 2017-10-19 21:40 给我一个理由 阅读(134) 评论(0) 推荐(0) 编辑