摘要: 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)
摘要: //打开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)
摘要: .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)
摘要: 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)
摘要: 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)
摘要: 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-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)