随笔分类 -  c#

摘要:https://www.cnblogs.com/lhxsoft/p/11887086.html 阅读全文
posted @ 2021-04-15 12:04 唯爱金生 阅读(143) 评论(0) 推荐(0)
摘要:public static class DateTimeExtensions { /// <summary> /// 将客户端时间转换为服务端本地时间 /// </summary> /// <param name="clientTime">客户端时间</param> /// <returns>返回服 阅读全文
posted @ 2021-01-20 11:19 唯爱金生 阅读(473) 评论(0) 推荐(0)
摘要:public class RestClient { private string BaseUri; public RestClient(string baseUri) { this.BaseUri = baseUri; } #region Delete方式 public string HttpDel 阅读全文
posted @ 2021-01-13 09:57 唯爱金生 阅读(962) 评论(0) 推荐(0)
摘要:(AreaEnum)Enum.Parse(typeof(AreaEnum), area.type) 阅读全文
posted @ 2021-01-12 13:06 唯爱金生 阅读(1470) 评论(0) 推荐(0)
摘要:网址 阅读全文
posted @ 2020-12-29 12:10 唯爱金生 阅读(199) 评论(0) 推荐(0)
摘要:连接1 连接2 阅读全文
posted @ 2020-09-18 10:02 唯爱金生 阅读(136) 评论(0) 推荐(0)
摘要:参考网址 阅读全文
posted @ 2020-07-06 14:33 唯爱金生 阅读(792) 评论(0) 推荐(0)
摘要:public int[] TwoSum(int[] nums, int target) { Dictionary<int, int> kvs = new Dictionary<int, int>(); for (int i = 0; i < nums.Length; i++) { int compl 阅读全文
posted @ 2020-06-19 12:31 唯爱金生 阅读(5480) 评论(0) 推荐(1)
摘要:压缩文件工具类.zip 阅读全文
posted @ 2020-06-17 16:41 唯爱金生 阅读(145) 评论(0) 推荐(0)
摘要:string json = Jsonstr(fileName);//Jsonstr函数读取json数据的文本txt JsonDataT result = JsonConvert.DeserializeObject<JsonDataT>(json); /// <summary> /// 转换txt中j 阅读全文
posted @ 2020-06-05 14:42 唯爱金生 阅读(1155) 评论(0) 推荐(0)
摘要:from 设定(input根据自己情况而定),enctype="multipart/form data"一定要设定,否则默认只提交文本 ajaxSubmit 需引入jquery.form.js $(" xx_User_content_qianming").ajaxSubmit({ type: 'PO 阅读全文
posted @ 2020-04-24 14:54 唯爱金生 阅读(794) 评论(0) 推荐(0)
摘要:```Document srcDoc = new Document();MemoryStream stream = new MemoryStream();//创建流srcDoc.Save(stream, SaveFormat.Doc);//保存到流中stream.Position = 0;//设置流中的当前位置return File(stream, "application/msword", fi... 阅读全文
posted @ 2020-04-21 13:53 唯爱金生 阅读(2122) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-04-15 12:00 唯爱金生 阅读(2093) 评论(0) 推荐(0)
摘要:HttpUtility.UrlEncode("转码字符串"); js需要转码 decodeURIComponent("返回的字符串"); 阅读全文
posted @ 2020-04-11 10:06 唯爱金生 阅读(383) 评论(0) 推荐(0)