摘要: ``` using System; using System.Collections.Generic; using System.Data; /// /// Class1 的摘要说明 /// public class ConvertTool { public static List DataConv 阅读全文
posted @ 2023-05-26 14:40 哎嘿_zx 阅读(12) 评论(0) 推荐(0) 编辑
摘要: public static DataTable JsonToDataTable(string json) { DataTable table = new DataTable(); //JsonStr为Json字符串 JArray array = JsonConvert.DeserializeObje 阅读全文
posted @ 2022-07-29 09:55 哎嘿_zx 阅读(288) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2022.cnblogs.com/blog/2474016/202203/2474016-20220315142346329-801637065.png) 阅读全文
posted @ 2022-03-15 14:25 哎嘿_zx 阅读(21) 评论(0) 推荐(0) 编辑
摘要: ###将datatable转换为json public static string Dtb2Json(DataTable dtb) { JavaScriptSerializer jss = new JavaScriptSerializer(); System.Collections.ArrayLis 阅读全文
posted @ 2022-03-03 10:14 哎嘿_zx 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 一、拼接字符串类型的字段 string sql = @"select distinct ziduan from tablename where ziduan in ('{0}')"; sql=string.Format(sql, string.Join("','", list.ToArray())) 阅读全文
posted @ 2022-03-01 10:40 哎嘿_zx 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 需要引用的命名空间 using ICSharpCode.SharpZipLib.Zip; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Web; /// 阅读全文
posted @ 2021-12-16 15:10 哎嘿_zx 阅读(656) 评论(0) 推荐(0) 编辑
摘要: function getNowDate() { var myDate = new Date; var year = myDate.getFullYear(); //获取当前年 var mon = myDate.getMonth() + 1; //获取当前月 var date = myDate.get 阅读全文
posted @ 2021-11-18 09:09 哎嘿_zx 阅读(98) 评论(0) 推荐(0) 编辑
摘要: var str='2019-09-20 20:05' if(/^\d{4}-\d{2}-\d{2}$/.test(str)){ alert("格式正确!"); }else{ alert('格式错误') } 阅读全文
posted @ 2021-11-17 17:06 哎嘿_zx 阅读(67) 评论(0) 推荐(0) 编辑
摘要: private DateTime FirstDayOfPreviousMonth(DateTime datetime) { return datetime.AddDays(1 - datetime.Day).AddMonths(-1); } private DateTime LastDayOfPrd 阅读全文
posted @ 2021-08-03 17:07 哎嘿_zx 阅读(401) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示