上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 61 下一页
摘要: 這兩個都可以判斷是手機登錄還是PC登陸,可以參考 阅读全文
posted @ 2017-12-18 09:31 洛晨随风 阅读(144) 评论(0) 推荐(0)
摘要: 如果在一段URL中需要回调地址作为参数,防止乱码,可以这么写: localhost:15521/Customer/SingleLogin?backurl=" + HttpUtility.UrlEncode(returnUrl); 解码方法: HttpUtility.UrlDecode(returnU 阅读全文
posted @ 2017-12-01 15:57 洛晨随风 阅读(183) 评论(0) 推荐(0)
摘要: 需要用到 slice() 方法 参考 http://www.w3school.com.cn/jsref/jsref_slice_array.asp 前端HTML使用标签是 type=file的input标签,可以直接选择文件上传 JS: 阅读全文
posted @ 2017-11-27 11:49 洛晨随风 阅读(1237) 评论(0) 推荐(0)
摘要: http://waringid.blog.51cto.com/65148/955939/ 阅读全文
posted @ 2017-11-21 09:50 洛晨随风 阅读(215) 评论(0) 推荐(0)
摘要: 使用EF6你有新的事务处理可以使用类似于: 复制代码 using (var context = new PostEntityContainer()) { using (var dbcxtransaction = context.Database.BeginTransaction()) { try { 阅读全文
posted @ 2017-11-14 17:05 洛晨随风 阅读(2672) 评论(0) 推荐(0)
摘要: 写法: UPDATE Document, ObservationRequestSET Document.CreateOrganizationName = ObservationRequest.OrganizationNameWHERE Document.BusinessID = Observatio 阅读全文
posted @ 2017-11-07 17:35 洛晨随风 阅读(251) 评论(0) 推荐(0)
摘要: qualityStatisticsInfoSql.Where(t => successStateArray.Contains(t.UploadReportFlag)); 如果写成 qualityStatisticsInfoSql.In(); 有可能SQL会生成出or的查询。or查询不走,mysql索 阅读全文
posted @ 2017-11-01 09:43 洛晨随风 阅读(204) 评论(0) 推荐(0)
摘要: /// /// Xml序列化与反序列化 /// public class XmlUtil { #region 反序列化 /// /// 反序列化 /// /// 类型 /// XML字符串 /// public stat... 阅读全文
posted @ 2017-10-13 10:50 洛晨随风 阅读(347) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/qinersky902/p/5065870.html 获取指定时间的代码地址 var quarter = (info.Day.Value.Month - 1) / 3 + 1;//季度 info.Day,指定时间,这里用来获取指定时间的月份 阅读全文
posted @ 2017-10-12 19:04 洛晨随风 阅读(824) 评论(0) 推荐(0)
摘要: http://aaronsa.blog.51cto.com/5157083/1741481 阅读全文
posted @ 2017-09-18 11:05 洛晨随风 阅读(174) 评论(0) 推荐(0)
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 61 下一页