会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
博客园
首页
LuoCore
LuoCore
www.LuoCore.com
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
7
8
9
10
11
12
13
14
15
···
52
下一页
2022年5月22日
net core api 跨域 Cors 找不到 “Access-Control-Allow-Origin”
摘要: public static void AddCorsSetup(this IServiceCollection services) { services.AddCors(c => { //允许任意跨域请求 c.AddDefaultPolicy(policy => { policy .SetIsOri
阅读全文
posted @ 2022-05-22 11:06 LuoCore
阅读(184)
评论(0)
推荐(0)
2022年5月13日
C# 字符串去掉括号和括号里面的内容
摘要: https://blog.csdn.net/zhang0000dehai/article/details/80701341 using System.Text.RegularExpressions; var majorname = "考古学(清华大学)".Replace("(", "(").Repl
阅读全文
posted @ 2022-05-13 17:36 LuoCore
阅读(1216)
评论(0)
推荐(0)
C# winform 打开设计时,也会执行编写的代码,
摘要: if (System.Diagnostics.Process.GetCurrentProcess().ProcessName == "devenv")//判断是否为设计时 { return;} if (Site == null || !this.Site.DesignMode)//运行时。。。 {
阅读全文
posted @ 2022-05-13 11:56 LuoCore
阅读(151)
评论(0)
推荐(0)
2022年5月6日
Js 时间类型转换
摘要: Date.prototype.format = function (format) { var args = { "M+": this.getMonth() + 1, "d+": this.getDate(), "h+": this.getHours(), "m+": this.getMinutes
阅读全文
posted @ 2022-05-06 11:52 LuoCore
阅读(317)
评论(0)
推荐(0)
2022年4月22日
Xamarin.Android 获取屏幕分辨率
摘要: var metrics = Resources.DisplayMetrics; Log.Debug("屏幕分辨率", $"宽={metrics.WidthPixels},高={metrics.HeightPixels},DPI={metrics.Density * 160}");
阅读全文
posted @ 2022-04-22 15:14 LuoCore
阅读(110)
评论(0)
推荐(0)
2022年4月20日
C# 去除字符串中重复的 字段
摘要: string test = "保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳,保护壳
阅读全文
posted @ 2022-04-20 10:54 LuoCore
阅读(202)
评论(0)
推荐(0)
2022年4月19日
C# datagridView 表格渲染变色 ( 动态改变表格值) 绘制时改变表格值
摘要: private void DGV_CellPainting(object sender, DataGridViewCellPaintingEventArgs e) { if (e.ColumnIndex >= 0 && DGV.Columns[e.ColumnIndex].Name == "字段名称
阅读全文
posted @ 2022-04-19 10:50 LuoCore
阅读(238)
评论(0)
推荐(0)
2022年4月14日
HtmlAgilityPack
摘要: https://malic.xyz/archives/1607 following-sibling选取当前节点之后的所有兄弟节点 要定位当前td同级后的一个td //td[.='text']/following-sibling::td https://www.cnblogs.com/VseYoung
阅读全文
posted @ 2022-04-14 14:23 LuoCore
阅读(62)
评论(0)
推荐(0)
2022年4月10日
C# 添加一个具有自定义命名空间和相同类名的静态类:Console
摘要: using CLRConsole = System.Console; namespace ExtensionMethodsDemo { public static class Console { public static void WriteLine(string value) { CLRCons
阅读全文
posted @ 2022-04-10 20:55 LuoCore
阅读(195)
评论(0)
推荐(0)
2022年4月9日
致敬- 調調-博客园 原来的(net core 使用 SqlSugar)
摘要: 同时感谢 https://www.programminghunter.com/article/23551893646/ 网站记录了信息,不然这么好的文章代码就要消失了, 同时自己备份一下 原来:https://www.cnblogs.com/oneprice/archive/2018/11/07/9
阅读全文
posted @ 2022-04-09 18:25 LuoCore
阅读(170)
评论(0)
推荐(0)
上一页
1
···
7
8
9
10
11
12
13
14
15
···
52
下一页
公告