上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 49 下一页
摘要: 在 package.json 文件 的 eslintConfig 配置部分加入 "no-debugger": "off", "no-console": "off", 意思为让eslint将debugger开启,并开启控制台 也可以在 .eslintrc.js 文件 里添加,这是等效的,因为 .esl 阅读全文
posted @ 2023-03-30 10:37 岑惜 阅读(1700) 评论(0) 推荐(0)
摘要: 在 shims.d.ts 文件 //全局参数定义 ,export {};不可缺少 export {}; declare global { interface Window { editor: any; __minderReadOnly: any; } } 那么使用 window.editor 这个参 阅读全文
posted @ 2023-03-30 10:34 岑惜 阅读(2151) 评论(0) 推荐(0)
摘要: 在 shims.d.ts 文件中 ,添加 declare module '*.js'; 即可 如果让所有的文件都可导入,则写为 declare module '*'; 阅读全文
posted @ 2023-03-30 10:32 岑惜 阅读(212) 评论(0) 推荐(0)
摘要: 需要在tsconfig.json 文件里,将 strict 设为 false 即可 这样,参数不需要必须定义类型了 阅读全文
posted @ 2023-03-30 10:29 岑惜 阅读(154) 评论(0) 推荐(0)
摘要: 1.防抖 期望: 同一时间或者同一时间前后指定范围内【如1秒内】如果没有更多的操作,多次调一个函数时,希望只调一次函数 实现: 使用定时器,指定时间内更新定时器计时时长,直到为0时调一次函数 2.节流 期望: 固定时间间隔内,多次调一个函数时,希望只调一次函数 实现: 使用定时器,设定固定间隔值,每 阅读全文
posted @ 2023-03-27 10:02 岑惜 阅读(27) 评论(0) 推荐(0)
摘要: 进入setting设置项,搜索 Java Compiler 添加项目模块后,设置jdk版本,然后确定即可 阅读全文
posted @ 2023-03-22 09:38 岑惜 阅读(1818) 评论(0) 推荐(0)
摘要: 1.原因 未安装插件 插件指令 yum -y install lrzsz 安装好后,即可执行 rz 上传文件 阅读全文
posted @ 2023-03-20 15:04 岑惜 阅读(192) 评论(0) 推荐(0)
摘要: using OfficeOpenXml; using OfficeOpenXml.Style; 阅读全文
posted @ 2023-03-09 14:10 岑惜 阅读(27) 评论(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 岑惜 阅读(456) 评论(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 岑惜 阅读(78) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 49 下一页