上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: 1.新建lodash.js // /*函数防抖*/ export function throttle(fn) { let canRun = true; // 通过闭包保存一个标记 return function () { // 在函数开头判断标记是否为true,不为true则return if (! 阅读全文
posted @ 2021-12-08 15:43 潇潇mini 阅读(978) 评论(0) 推荐(0) 编辑
摘要: 一、本示例使用环境:Net Core3.1、WebAPI、IIS 二、使用核心类:ZipFile 三、示例代码(亲测有效) using System.Net.Http; using System.IO.Compression; 对线上文件进行打包压缩: public async Task<ApiRe 阅读全文
posted @ 2021-11-30 17:40 潇潇mini 阅读(1456) 评论(1) 推荐(0) 编辑
摘要: 后台使用el-upload完成上传,有时候会发现无法上传成功,会重定向至登录页面。 检查发现url请求并未添加cookie请求,cookie丢失导致无法完成验证。 el-upload组件默认请求是不带cookie的 解决方法:设置属性with-credentials为true支持发送 cookie 阅读全文
posted @ 2021-09-03 16:10 潇潇mini 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 之前在网上看到大部分的意见都认为“对于Excel 97-2003格式,还是用NPOI最好;而对于2007(xlsx)以上版本,可以使用EPPlus”。然后在实际操作中有发现,使用NPOI的话,读取xlsx文件会出点问题,但是写入的话,个人感觉EPPlus语言简洁美观点(此地仅个人感官,实际使用以个人 阅读全文
posted @ 2021-08-13 18:43 潇潇mini 阅读(1605) 评论(0) 推荐(0) 编辑
摘要: 合并单元格,如果id列值一致,则合并。 <el-table :data="tableData6" :span-method="objectSpanMethod" border style="width: 100%; margin-top: 20px"> <el-table-column prop=" 阅读全文
posted @ 2021-08-13 18:19 潇潇mini 阅读(412) 评论(0) 推荐(0) 编辑
摘要: #region 数字转大写 public static string ToAmountWords(double money) { string temp = ""; string resu = ""; string jf = ""; int j = 0; int j_1 = 0; int jiao 阅读全文
posted @ 2021-07-14 17:00 潇潇mini 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 1,toggleRowSelection调用方式为refs方式,直接操作DOM层 this.$refs.multipleTable.toggleRowSelection(item, innerGood.selected); 2,我将dialog直接封装成组件,这是造成问题的直接原因 3,然后在这个组 阅读全文
posted @ 2021-06-18 10:50 潇潇mini 阅读(2863) 评论(0) 推荐(0) 编辑
摘要: <!--region 封装table--> <template> <div class="table"> <el-table id="iTable" :data="data" ref="mutipleTable" @selection-change="handleSelectionChange" v 阅读全文
posted @ 2021-05-08 11:01 潇潇mini 阅读(728) 评论(0) 推荐(0) 编辑
摘要: //下载文件 function downLoad(url) { var xhr = new XMLHttpRequest(); xhr.open("get", url, true); xhr.responseType = "blob"; xhr.onload = function () { var 阅读全文
posted @ 2021-04-22 11:06 潇潇mini 阅读(177) 评论(0) 推荐(0) 编辑
摘要: public class DateHelper { #region 周 /// <summary> /// 获取时间所处周的第一天 /// </summary> /// <param name="date"></param> /// <returns></returns> public static 阅读全文
posted @ 2021-02-23 11:12 潇潇mini 阅读(66) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 9 下一页