上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 49 下一页
摘要: 在 shims.d.ts 文件中 ,添加 declare module '*.js'; 即可 如果让所有的文件都可导入,则写为 declare module '*'; 阅读全文
posted @ 2023-03-30 10:32 岑惜 阅读(209) 评论(0) 推荐(0)
摘要: 需要在tsconfig.json 文件里,将 strict 设为 false 即可 这样,参数不需要必须定义类型了 阅读全文
posted @ 2023-03-30 10:29 岑惜 阅读(151) 评论(0) 推荐(0)
摘要: 1.防抖 期望: 同一时间或者同一时间前后指定范围内【如1秒内】如果没有更多的操作,多次调一个函数时,希望只调一次函数 实现: 使用定时器,指定时间内更新定时器计时时长,直到为0时调一次函数 2.节流 期望: 固定时间间隔内,多次调一个函数时,希望只调一次函数 实现: 使用定时器,设定固定间隔值,每 阅读全文
posted @ 2023-03-27 10:02 岑惜 阅读(21) 评论(0) 推荐(0)
摘要: 进入setting设置项,搜索 Java Compiler 添加项目模块后,设置jdk版本,然后确定即可 阅读全文
posted @ 2023-03-22 09:38 岑惜 阅读(1615) 评论(0) 推荐(0)
摘要: 1.原因 未安装插件 插件指令 yum -y install lrzsz 安装好后,即可执行 rz 上传文件 阅读全文
posted @ 2023-03-20 15:04 岑惜 阅读(182) 评论(0) 推荐(0)
摘要: using OfficeOpenXml; using OfficeOpenXml.Style; 阅读全文
posted @ 2023-03-09 14:10 岑惜 阅读(24) 评论(0) 推荐(0)
摘要: public static bool delFile(FileInfo file, string url) { try { if (file == null) { file = new FileInfo(url); } if (!file.Exists) { return true; } file. 阅读全文
posted @ 2023-03-09 14:08 岑惜 阅读(445) 评论(0) 推荐(0)
摘要: //需要文件字节流、带后缀的文件名,mine类型public static void exportFile(byte[] data, string fileName, string mine) { HttpContext.Current.Response.Clear(); HttpContext.C 阅读全文
posted @ 2023-03-09 14:06 岑惜 阅读(75) 评论(0) 推荐(0)
摘要: FileStream fs = new FileStream(fileUrl, FileMode.Open); byte[] data = new byte[fs.Length]; fs.Read(data, 0, data.Length); fs.Close(); 这个 data 就是字节流数据 阅读全文
posted @ 2023-03-09 14:05 岑惜 阅读(637) 评论(0) 推荐(0)
摘要: 依赖使用 using Aspose.Words; using Aspose.Words.Tables; 打开表格 Document doc = new Document("文件路径"); //选中第一个表格 Table table = (Table) doc.GetChild(NodeType.Ta 阅读全文
posted @ 2023-03-09 14:04 岑惜 阅读(173) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 49 下一页