会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
备忘笔记
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
15
下一页
2021年11月22日
C# EF查询不同分组的第一条数据
摘要: ddcsList = LoadEntities(x => x.Status == 1).GroupBy(t => t.SelectKey).Select(o => o.FirstOrDefault()).ToList();
阅读全文
posted @ 2021-11-22 09:40 最好的年纪
阅读(716)
评论(0)
推荐(0)
2021年11月8日
js 正则表达式收集
摘要: // 正则提取字符串中的小数 str.replace(/[^\d.]/g, "") // 正则表达式 开头:^ 结尾:$ var str='&12abd3_3iw;'; var regex=/^&.*;$/; var result=regex.test(str); // 正则表达式,以字母开头,由-
阅读全文
posted @ 2021-11-08 17:36 最好的年纪
阅读(69)
评论(0)
推荐(0)
2021年10月26日
C# 实体默认返回格式化日期
摘要: /// <summary> /// 创建人名 /// </summary> [NotMapped] public string CreateUserName { get; set; } /// <summary> /// 创建时间 /// </summary> [NotMapped] public
阅读全文
posted @ 2021-10-26 15:35 最好的年纪
阅读(271)
评论(0)
推荐(0)
2021年10月20日
C# 获取exe当前运行目录的5种方法和区别
摘要: string str1 = Process.GetCurrentProcess().MainModule.FileName;//可获得当前执行的exe的文件名。 string str2 = Environment.CurrentDirectory;//获取和设置当前目录(即该进程从中启动的目录)的完
阅读全文
posted @ 2021-10-20 15:33 最好的年纪
阅读(3823)
评论(0)
推荐(2)
C# 实体的属性值Object转List
摘要: 参考链接:Object to Generic List<> cast (microsoft.com) IList objList = (IList)objData; int count = objList.Count; // The LINQ conversions will lose this i
阅读全文
posted @ 2021-10-20 11:36 最好的年纪
阅读(5011)
评论(0)
推荐(0)
2021年10月13日
windows KAFKA命令
摘要: (1条消息) 如何查看kafka消息消费进度以及是否有未消费的消息_epitomizelu的专栏-CSDN博客_如何判断kafka消息是否消费完成
阅读全文
posted @ 2021-10-13 13:50 最好的年纪
阅读(55)
评论(0)
推荐(0)
2021年8月18日
js正则匹配正负小数
摘要: // 保留2位小数 /^([\-?[0-9]{0,4}|[0-9])+\.?[0-9]{0,2}$/.test(-0.01)true // 保留2位小数/^([\-?[0-9]{0,4}|[0-9])+\.?[0-9]{0,2}$/.test("-0.001")false
阅读全文
posted @ 2021-08-18 09:40 最好的年纪
阅读(1144)
评论(0)
推荐(0)
2021年8月17日
iview table 自适应高度
摘要: // 思路:1.在iview-table的外层定义一枚父元素,对父元素的高度做响应式处理 // 2.mouted阶段,获取父元素高度并赋给iview-table,且设置window.resize事件也触发此方法 // 示例: <div> <div class="custom-head"></div>
阅读全文
posted @ 2021-08-17 15:21 最好的年纪
阅读(1336)
评论(0)
推荐(0)
2021年8月11日
iview tree render 自定义右键菜单(解决部分场景下官网tree右键菜单bug)
摘要: // 树组件 <Tree v-bind:data="structTreeData" v-bind:render="renderContent" @@on-select-change="selectChange"></Tree> // render函数 renderContent (h, params
阅读全文
posted @ 2021-08-11 10:52 最好的年纪
阅读(577)
评论(0)
推荐(0)
2021年8月10日
iview tree render 右键点击事件
摘要:
阅读全文
posted @ 2021-08-10 16:02 最好的年纪
阅读(234)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
15
下一页
公告