上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 23 下一页

2023年8月9日

js 添加和移除disabled属性

摘要: ``` //js的方式 //动态修改元素disabled属性 function disableTest(element,val){ document.getElementById(element).disabled=val; } document.getElementById("uid").disa 阅读全文

posted @ 2023-08-09 11:08 糯米白白 阅读(2743) 评论(0) 推荐(0)

2023年7月27日

C# string.format格式说明

摘要: stringstr1 =string.Format("{0:N1}",56789); //result: 56,789.0 stringstr2 =string.Format("{0:N2}",56789); //result: 56,789.00 stringstr3 =string.Format 阅读全文

posted @ 2023-07-27 17:25 糯米白白 阅读(33) 评论(0) 推荐(0)

Excel表格中的行数和列数的最大是多少

摘要: Excel 2003版:zhi列数dao最大256(IV,2的8次方)列,行数最大65536(2的16次方)行; Excel 2007版:列数最大16384(XFD,2的14次方),行数最大1048576(2的20次方); Excel 2013版:列数最大16384(XFD,2的14次方),行数最大 阅读全文

posted @ 2023-07-27 17:06 糯米白白 阅读(1323) 评论(0) 推荐(0)

C# 删除文件下所有文件

摘要: 使用静态扩展方法 ``` public static void Empty(this System.IO.DirectoryInfo directory) { foreach(System.IO.FileInfo file in directory.GetFiles()) file.Delete() 阅读全文

posted @ 2023-07-27 17:03 糯米白白 阅读(22) 评论(0) 推荐(0)

VS 还原 NuGet 程序包时出错: 无法加载源 https://dotnet.myget.org/F/aspnetcore-dev/api/v3

摘要: 错误 还原 NuGet 程序包时出错: 无法加载源 https://dotnet.myget.org/F/aspnetcore-dev/api/v3 解决方法 在新源中添加地址: https://www.nuget.org/api/v2/ ![](https://img2023.cnblogs.co 阅读全文

posted @ 2023-07-27 17:01 糯米白白 阅读(74) 评论(0) 推荐(0)

2023年7月24日

An exception was thrown while activating Volo.Abp.BackgroundJobs.EntityFrameworkCore.BackgroundJobsDbContext

摘要: .Net Core Abp vnext框架报错 An exception was thrown while activating Volo.Abp.BackgroundJobs.EntityFrameworkCore.BackgroundJobsDbContext 默认DbContext 的 Con 阅读全文

posted @ 2023-07-24 17:52 糯米白白 阅读(733) 评论(0) 推荐(0)

2023年7月13日

.Net SDK 下载地址

摘要: https://dotnet.microsoft.com/zh-cn/download/visual-studio-sdks?utm_source=getdotnetsdk&utm_medium=referral 阅读全文

posted @ 2023-07-13 10:40 糯米白白 阅读(269) 评论(0) 推荐(0)

2023年7月12日

.Net Core 中使用SkiaSharp绘制图片

摘要: 引入SkiaSharp nuget包 使用代码 ``` public class SkiaSharpHelper { /// /// 将文字加到图片上 /// /// 模板图片路径 /// 保存文件路径 /// public static (bool result, string msg) Crea 阅读全文

posted @ 2023-07-12 16:43 糯米白白 阅读(855) 评论(0) 推荐(0)

C# EF中like使用方式

摘要: ``` var query = db.Table.Where(x => x.Status); if (!string.IsNullOrEmpty(keyword)) { string keywordLike = $"%{keyword}%"; query = query.Where(q => EF. 阅读全文

posted @ 2023-07-12 16:29 糯米白白 阅读(316) 评论(0) 推荐(0)

C# 获取字符串自动换行

摘要: ``` //判断是否是汉字 public static bool IsChinese(char chr) { return (int)chr > 0x4E00 && (int)chr /// 截取字符串,不限制字符串长度 /// /// 待截取的字符串 /// 每行的长度,多于这个长度自动换行 // 阅读全文

posted @ 2023-07-12 16:25 糯米白白 阅读(332) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 23 下一页

导航