会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
博客园
首页
新随笔
联系
管理
订阅
2023年12月6日
Jquery 全局替换replace
摘要: var reg = new RegExp(",","g"); //g表示全文替换 var res = awards.replace(reg,"<br/>");
阅读全文
posted @ 2023-12-06 10:53 吃辣椒的小毛驴
阅读(107)
评论(0)
推荐(0)
2022年9月16日
hangfire在.netCore中调用
摘要: HangFire在.netCore中如何使用不在介绍了,不会的可以搜索一下,有很多 但是写完如何调用呢? 1、定时任务,创建 RecurringJobService类, //定时任务 public class RecurringJobService : IRecurringJobService {
阅读全文
posted @ 2022-09-16 16:48 吃辣椒的小毛驴
阅读(510)
评论(0)
推荐(0)
2022年8月3日
C# 整理Get和Post请求【全】
摘要: /// <summary> /// 指定Post地址使用Get 方式获取全部字符串 /// </summary> /// <param name="url">请求后台地址</param> /// <returns></returns> public static string Get(string
阅读全文
posted @ 2022-08-03 15:59 吃辣椒的小毛驴
阅读(460)
评论(0)
推荐(0)
2022年3月14日
.netCore 获取请求者Ip
摘要: 1、在NuGett安装 Microsoft.AspNetCore.Http 2、在 startup.cs 的 ConfigureServices 中注入 services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>(); 3、获取I
阅读全文
posted @ 2022-03-14 16:48 吃辣椒的小毛驴
阅读(962)
评论(0)
推荐(0)
2021年8月13日
layui 更新echarts版本后地图报错
摘要: 目前layui里面的echarts版本太低,不能满足项目需要,所以进行了echarts版本更新 1、如何更新 echarts 官网进行下载:https://echarts.apache.org/zh/download.html 点击 “在线制定”-》选择版本-》图表、坐标系、组件等,然后进行下载。选
阅读全文
posted @ 2021-08-13 15:16 吃辣椒的小毛驴
阅读(312)
评论(0)
推荐(0)
2021年4月6日
.netCore 使用Quartz做定时任务,生命周期注册为Scoped
摘要: 上篇使用Quartz.NET在ConfigureServices中进行注册时 产生报错信息如下: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceT
阅读全文
posted @ 2021-04-06 11:49 吃辣椒的小毛驴
阅读(1144)
评论(0)
推荐(0)
2021年3月26日
.netCore 使用Quartz做定时任务
摘要: 参考:https://www.cnblogs.com/LinWenQiang/p/13460283.html Quartz 由三个部分组成,分别为Schedule(调度器)、Trigger(触发器)、JobDetail(任务) 1、首先在项目中添加Quartz nuget 包。 2、创建我们的任务,
阅读全文
posted @ 2021-03-26 14:35 吃辣椒的小毛驴
阅读(1176)
评论(0)
推荐(1)
2021年1月13日
.NetCore3.1 WebApi中Swagger配置
摘要: 官方教程: https://docs.microsoft.com/zh-cn/aspnet/core/tutorials/getting-started-with-swashbuckle?view=aspnetcore-3.1&tabs=visual-studio#add-and-configure
阅读全文
posted @ 2021-01-13 16:23 吃辣椒的小毛驴
阅读(267)
评论(1)
推荐(0)
2021年1月6日
【转载】C# 阿拉伯数字转换为中文数字/中文数字转换为阿拉伯数字
摘要: 原文地址: https://www.cnblogs.com/yellow3gold/p/11338374.html 1.阿拉伯数字转换为中文数字 /// <summary> /// 阿拉伯数字转换成中文数字 /// </summary> /// <param name="x"></param> //
阅读全文
posted @ 2021-01-06 14:43 吃辣椒的小毛驴
阅读(337)
评论(0)
推荐(0)
2020年12月16日
C# 去重扩展类
摘要: public static class IEnumerableEx { public static IEnumerable<TSource> DistinctBy<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey>
阅读全文
posted @ 2020-12-16 16:36 吃辣椒的小毛驴
阅读(95)
评论(0)
推荐(0)
下一页
公告