2024年5月8日
摘要:

阅读全文
posted @ 2024-05-08 16:50
RookieBoy666
阅读(28)
推荐(0)
2024年4月9日
摘要:
取二进制图片数据 $('#photoUrl').attr('src', data.Photo ? 'data:image/jpeg;base64,' + data.Photo : '/Content/img/User.png'); 取input type='checkbox' 是否选中 $("#Is
阅读全文
posted @ 2024-04-09 15:09
RookieBoy666
阅读(86)
推荐(0)
2024年3月23日
摘要:
public static class HttpHelper { //private static LogHelper Log { get; } = new LogHelper("HttpHelper"); /// <summary> /// 发起POST同步请求 /// </summary> //
阅读全文
posted @ 2024-03-23 17:56
RookieBoy666
阅读(24)
推荐(0)
摘要:
命名空间: 点击查看代码 using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.IO; using System.Linq; 类: 点击查看代码 /// <summary> /// Json扩展方法
阅读全文
posted @ 2024-03-23 17:55
RookieBoy666
阅读(36)
推荐(0)
摘要:
nuget安装 Magick.NET-Q8-AnyCPU 我项目Framework未 4.5.1 这安装的7.17.0版本的包: 程序集引用: using ImageMagick; ConvertHeicToJpg方法转换代码如下: 点击查看代码 /// <summary> /// Heic转ToJ
阅读全文
posted @ 2024-03-23 16:52
RookieBoy666
阅读(659)
推荐(0)
2024年2月27日
摘要:
代码 点击查看代码 int xWidth3 = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width; int yHeight3 = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height
阅读全文
posted @ 2024-02-27 15:08
RookieBoy666
阅读(215)
推荐(0)
摘要:
窗口初始化后: 点击查看代码 //获取窗口的大小,Tag随便保存的,也可以定义变量保存 this.Tag = this.Width.ToString() + "," + this.Height.ToString(); //这一步很重要,不能隐式的去生成这个事件,就是不能直接在属性栏里面双击自动生成,
阅读全文
posted @ 2024-02-27 15:00
RookieBoy666
阅读(208)
推荐(0)
2023年11月23日
摘要:
1.在catch块 return 掉 finally会执行吗? 答案:会 代码: 点击查看代码 try { int s = 1; Console.WriteLine(1); var a = 5 / (1 - s);//除以 0 捕获异常 } catch (Exception) { Console.W
阅读全文
posted @ 2023-11-23 15:58
RookieBoy666
阅读(16)
推荐(0)
2023年8月29日
摘要:
1.在 SQL Server 中,MERGE INTO 是一个用于合并数据的语句,它可以根据指定的条件将数据从源表合并到目标表 点击查看代码 ``` MERGE INTO 目标表 USING 源表 ON 目标表.列 = 源表.列 WHEN MATCHED THEN -- 更新目标表中的数据 UPDA
阅读全文
posted @ 2023-08-29 17:04
RookieBoy666
阅读(390)
推荐(0)
2023年8月23日
摘要:
查询数据库表、字段、备注 /************************************************************ * Code formatted by SoftTree SQL Assistant ?v5.0.97 * Time: 2020/3/24 8:50:
阅读全文
posted @ 2023-08-23 15:59
RookieBoy666
阅读(113)
推荐(0)