02 2023 档案

摘要:public static string get_val_by_key(this Dictionary<string, string> dictionary, string key) => dictionary == null || !dictionary.ContainsKey(key) ? "" 阅读全文
posted @ 2023-02-27 10:35 liskov_design 阅读(21) 评论(0) 推荐(0) 编辑
摘要:C# 操作DataTable数据量达到6000条左右的时候会出现性能问题。 调试模式会直接报错:内存溢出。 编译的运行程序则会直接退出。 只能减少数据量。 阅读全文
posted @ 2023-02-24 17:03 liskov_design 阅读(313) 评论(1) 推荐(0) 编辑
摘要:nohup dotnet /www/wwwroot/xxx.dll --urls "http://*:6001;http://*:6002" &此时候的6001和6002端口对应的程序的内存和static变量都是存在同一个堆栈里面,可以做缓存。 nohup dotnet /www/wwwroot/x 阅读全文
posted @ 2023-02-20 14:19 liskov_design 阅读(53) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2023-02-15 17:44 liskov_design 阅读(0) 评论(0) 推荐(0) 编辑
摘要:代码: StringBuilder stringBuilder = new StringBuilder(); stringBuilder.AppendFormat("{0} sssss{", "aaaa"); stringBuilder.AppendLine("}"); 报错: 解决办法: Stri 阅读全文
posted @ 2023-02-15 17:41 liskov_design 阅读(436) 评论(0) 推荐(0) 编辑
摘要:/// <summary>/// 获取该时间所在月份的最后一天的string(年月日)/// </summary>/// <param name="time"></param>/// <returns></returns>public static string get_last_day_at_pa 阅读全文
posted @ 2023-02-09 10:24 liskov_design 阅读(168) 评论(0) 推荐(0) 编辑
摘要:truncate table table_name_xxx 执行速度非常快,只会产生极少的日志log 阅读全文
posted @ 2023-02-09 10:21 liskov_design 阅读(142) 评论(0) 推荐(0) 编辑
摘要:代码:prettyFormat function prettyFormat(str) { try { // 设置缩进为2个空格 str = JSON.stringify(JSON.parse(str), null, 2); str = str .replace(/&/g, '&') .replace 阅读全文
posted @ 2023-02-06 14:53 liskov_design 阅读(97) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示