摘要:
System.DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new System.DateTime(1970, 1, 1)); // 当地时区 long timeStamp = (long)(DateTime.Now - startTime).TotalSeconds; // 相差秒数 阅读全文
摘要:
<system.webServer> <httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="*" /> <add name="Access-Control-Allow-Headers" value="Access-Control-Allow-Origin, AppKey, Authorizatio 阅读全文
摘要:
using (var dbcontext = new Entities()) { var objectContext = ((IObjectContextAdapter)dbcontext).ObjectContext; var mappingCollection = (StorageMappingItemCollection)objectContext.MetadataWorkspace.Get 阅读全文
摘要:
new string(input.Where(c => Char.IsLetterOrDigit(c)).ToArray()) 阅读全文
摘要:
public static void WritetLog(string strMessage) { string path = AppDomain.CurrentDomain.BaseDirectory; if (!Directory.Exists(path)) Directory.CreateD... 阅读全文
摘要:
public static string Post(string url, Dictionary<string, string> dic, string token) { string result = ""; HttpWebRequest req = (HttpWebRequest) WebReq 阅读全文
摘要:
Microsoft.Net.Compilers 是什么? Microsoft.NET.Compilers 作为一个编译包,它为开源C#和Visual Basic 编译器提供了丰富的代码分析API 。要点是,与该包一起分发的编译器将用于编译项目,而不是.NET Framework或Visual Stu 阅读全文
摘要:
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... 阅读全文
摘要:
cancel: function (fileID, supressEvent) { var args = arguments; this.each(function () { // Create a reference to the jQuery DOM object var $this = $(t 阅读全文
摘要:
//获取当前一周的开始和结束日期function getWeekStarEndTime() { var now = new Date(); //当前日期 var nowDayOfWeek = now.getDay(); //今天本周的第几天 var nowDay = now.getDate(); / 阅读全文