摘要: System.DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new System.DateTime(1970, 1, 1)); // 当地时区 long timeStamp = (long)(DateTime.Now - startTime).TotalSeconds; // 相差秒数 阅读全文
posted @ 2019-09-17 15:12 Schauspieler 阅读(179) 评论(0) 推荐(0) 编辑
摘要: <system.webServer> <httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="*" /> <add name="Access-Control-Allow-Headers" value="Access-Control-Allow-Origin, AppKey, Authorizatio 阅读全文
posted @ 2019-09-03 11:15 Schauspieler 阅读(179) 评论(0) 推荐(0) 编辑
摘要: using (var dbcontext = new Entities()) { var objectContext = ((IObjectContextAdapter)dbcontext).ObjectContext; var mappingCollection = (StorageMappingItemCollection)objectContext.MetadataWorkspace.Get 阅读全文
posted @ 2019-09-03 11:14 Schauspieler 阅读(162) 评论(0) 推荐(0) 编辑
摘要: new string(input.Where(c => Char.IsLetterOrDigit(c)).ToArray()) 阅读全文
posted @ 2019-09-03 11:13 Schauspieler 阅读(3198) 评论(0) 推荐(0) 编辑
摘要: public static void WritetLog(string strMessage) { string path = AppDomain.CurrentDomain.BaseDirectory; if (!Directory.Exists(path)) Directory.CreateD... 阅读全文
posted @ 2019-08-14 14:38 Schauspieler 阅读(118) 评论(0) 推荐(0) 编辑
摘要: public static string Post(string url, Dictionary<string, string> dic, string token) { string result = ""; HttpWebRequest req = (HttpWebRequest) WebReq 阅读全文
posted @ 2019-08-14 14:35 Schauspieler 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Microsoft.Net.Compilers 是什么? Microsoft.NET.Compilers 作为一个编译包,它为开源C#和Visual Basic 编译器提供了丰富的代码分析API 。要点是,与该包一起分发的编译器将用于编译项目,而不是.NET Framework或Visual Stu 阅读全文
posted @ 2019-08-08 22:44 Schauspieler 阅读(1170) 评论(1) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Newtonsoft.Json; namespace JsonDome... 阅读全文
posted @ 2017-11-06 08:56 Schauspieler 阅读(4836) 评论(0) 推荐(0) 编辑
摘要: cancel: function (fileID, supressEvent) { var args = arguments; this.each(function () { // Create a reference to the jQuery DOM object var $this = $(t 阅读全文
posted @ 2017-09-01 14:46 Schauspieler 阅读(209) 评论(0) 推荐(0) 编辑
摘要: //获取当前一周的开始和结束日期function getWeekStarEndTime() { var now = new Date(); //当前日期 var nowDayOfWeek = now.getDay(); //今天本周的第几天 var nowDay = now.getDate(); / 阅读全文
posted @ 2017-06-21 14:11 Schauspieler 阅读(1122) 评论(0) 推荐(0) 编辑