摘要: 使用函数可以解决encodeURIComponent(filename) 阅读全文
posted @ 2023-12-01 10:54 启豪 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 1 const { app, BrowserWindow, Menu ,remote , ipcMain } = require("electron"); 2 const path = require("path"); 3 const axios = require('axios'); 4 cons 阅读全文
posted @ 2023-11-10 15:45 启豪 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 1:maven依赖的问题 此类原因是与pom.xml文件中引入的分页依赖有关,由于springboot本身集成pagerhelper的分页插件,只需要引入如下依赖即可 <!-- spring-boot mybatis pagehelper --> <dependency> <groupId>com. 阅读全文
posted @ 2023-04-27 17:14 启豪 阅读(35) 评论(0) 推荐(1) 编辑
摘要: // 全局注册防抖 Vue.component("ElButton").mixin({ data() { return { debounce: false } }, methods: { //覆盖el-button的点击事件,使用的是vue2.5.2,发现为直接覆写了原方法 handleClick( 阅读全文
posted @ 2023-03-01 17:01 启豪 阅读(102) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash directory="/path/to/directory" if [ $(ls -A $directory) ]; then echo "有文件" # 执行指定shell脚本 sh /path/to/script.sh else echo "没有文件" fi #!/bin/ 阅读全文
posted @ 2023-02-23 16:36 启豪 阅读(424) 评论(0) 推荐(0) 编辑
摘要: def convertDateFormat(str : String) : String = { val date = if (str ! = null && str.nonEmpty && str.trim.contains( " " )) str.split( " " )( 0 ) else s 阅读全文
posted @ 2022-10-13 15:59 启豪 阅读(36) 评论(0) 推荐(0) 编辑
摘要: scroll-behavior:smooth;//使用该方法使用a标签锚点的时候会实现平滑 xxx.scrollIntoView({ behavior: "smooth" }) 阅读全文
posted @ 2022-08-18 21:07 启豪 阅读(67) 评论(0) 推荐(0) 编辑
摘要: @Configuration public class MyConfigrauration implements WebMvcConfigurer { /** * 当有请求经过【/myUpload/**】 * 访问本地文件【E/upload】 * @param registry */ @Overri 阅读全文
posted @ 2022-07-13 14:13 启豪 阅读(98) 评论(0) 推荐(0) 编辑
摘要: @WebServlet("/code") public class VerifyCodeUtils extends HttpServlet { @Override protected void service(HttpServletRequest req, HttpServletResponse r 阅读全文
posted @ 2022-06-16 09:43 启豪 阅读(44) 评论(0) 推荐(0) 编辑
摘要: @NoArgsConstructor @Data //生成 空参构造 get、set、 tostring、 equals、 hascode public class PageUtils<T> { private int totalCount;//总记录数 依赖查询,外界传入 private int 阅读全文
posted @ 2022-06-16 09:41 启豪 阅读(111) 评论(0) 推荐(0) 编辑