会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
沐水g
博客园
首页
新随笔
联系
订阅
管理
2020年3月17日
C#简易IOC
摘要: interface ImContainer { void RegisterType<TForm, TTo>() where TTo : TForm; TForm Resolve<TForm>(); } class mContainer : ImContainer { private Dictiona
阅读全文
posted @ 2020-03-17 18:34 沐水g
阅读(554)
评论(0)
推荐(0)
2019年12月4日
aspose.cell 实现通过excel模板导出具有多个sheet的excel
摘要: //打开excel模板 Workbook workbook = new Workbook("D:/1.xlsx"); //打开设计器 WorkbookDesigner designer = new WorkbookDesigner(workbook); //选择excel中的第一个sheet作为模板
阅读全文
posted @ 2019-12-04 09:23 沐水g
阅读(1829)
评论(0)
推荐(0)
2019年11月30日
.net core 3.0 配置 swagger
摘要: .net core 3.0想要使用swagger需要添加5.0两个 Nuget 包(预览版):Swashbuckle.AspNetCore 和 Swashbuckle.AspNetCore.Filters Swashbuckle.AspNetCore Package Manager : Instal
阅读全文
posted @ 2019-11-30 17:16 沐水g
阅读(640)
评论(0)
推荐(0)
2019年11月25日
sql server 中关于DISTINCT指定多个字段,并查询全部字段的解决办法
摘要: SELECT * FROM ( SELECT ID , SKU , Product , --指定需要查询的字段 ROW_NUMBER() OVER ( PARTITION BY PRODUCT ORDER BY ID ) AS RowNumber --PARTITION BY表示需要DISTINCT
阅读全文
posted @ 2019-11-25 14:11 沐水g
阅读(3662)
评论(0)
推荐(0)
2019年11月13日
IE无法兼容pageX/pageY问题
摘要: e.clientX/e.clientY 鼠标在可视区域中的位置 e.pageX/e.pageY 鼠标在页面中的位置 有兼容性问题 从IE9以后才支持 pageY = clientY + 页面滚动出去的距离 // 获取页面滚动出去的距离 function getScroll() { var scrol
阅读全文
posted @ 2019-11-13 10:27 沐水g
阅读(401)
评论(0)
推荐(0)
2019年11月12日
js右键菜单,支持IE浏览器,超级方便
摘要: js代码 $(document).on("contextmenu", "[class='xxx']", function (event) { let items = [ { title: '修改', icon: 'ion-edit', fn: function edit() { } }, { tit
阅读全文
posted @ 2019-11-12 10:26 沐水g
阅读(306)
评论(0)
推荐(0)
layui固定分页控件保持在页面的最下方
摘要: .layui-table-page { background-color: #1AA094; z-index: 99999; position: fixed; bottom: 0; } .layui-table-box { margin-bottom: 30px; }
阅读全文
posted @ 2019-11-12 10:06 沐水g
阅读(7142)
评论(0)
推荐(0)
公告