2023年10月26日
摘要: import dayjs from 'dayjs' //获取近几年的年份 export function handleLastYearList(num = 5, year?: string | number) { if (year) year = year.toString() const curr 阅读全文
posted @ 2023-10-26 10:22 还能不能行d 阅读(83) 评论(0) 推荐(0) 编辑
2023年9月8日
摘要: ![](https://img2023.cnblogs.com/blog/2737721/202309/2737721-20230908111607738-727565179.png) ^(.+)((?:\r?\n.*)*)(?:\r?\n\1)$ $1$2 阅读全文
posted @ 2023-09-08 11:18 还能不能行d 阅读(636) 评论(0) 推荐(0) 编辑
2023年4月18日
摘要: 这里调接口时记得加上responseType: 'blob' /** * @description: 下载文件 * @param {string} data 文件流 * @param {string} filename 文件名 * @return {*} */ export function dow 阅读全文
posted @ 2023-04-18 11:09 还能不能行d 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 都是根据前面的值来判断最终返回前面的值还是后面的值。 a ?? b a || b 判断的方法不同: 使用 ?? 时,只有 a 为 null 或者 undefined 时才会返回 b; 使用 || 时,a会先转化为布尔值判断,为 true 时返回a, false 返回b. ??更加适合在不知道变量是否 阅读全文
posted @ 2023-04-18 10:45 还能不能行d 阅读(400) 评论(0) 推荐(0) 编辑
2023年3月29日
摘要: { "editor.fontSize": 15, "files.autoSave": "afterDelay", "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue", "editor. 阅读全文
posted @ 2023-03-29 14:49 还能不能行d 阅读(78) 评论(0) 推荐(0) 编辑