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