上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: /** * 创建一个带有重试机制的请求函数,用于避免请求受限或失败时重新尝试请求。 * @param {function} func - 要执行的请求函数。 * @param {number} maxCount - 最大重试次数,默认为 10。 * @param {number} time - 重试 阅读全文
posted @ 2023-10-12 11:46 Chiffon1996 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 1、需求背景 使用异步操作(promise)或者多个循环时,遇到不能及时中断操作,回收资源时 2、代码 /** * 创建一个可中断的异步任务执行函数。 * @param {function} taskFunction - 要执行的异步任务函数,接受一个 AbortSignal 参数用于中断。 * @ 阅读全文
posted @ 2023-10-11 09:01 Chiffon1996 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 两个不同种类的数据差距大 使用dataset的option配置项 option = { legend: {}, tooltip: {}, dataset: { dimensions: ['model', '评分数', '评分值'], source: [ { model: 'FBA', 评分数: 15 阅读全文
posted @ 2023-09-25 11:25 Chiffon1996 阅读(513) 评论(0) 推荐(0) 编辑
摘要: DON'T use ref or reactive to wrap the echarts instance. Use a common variable or shallowRef to avoid the deep watch for echarts instance. 不要使用 ref 或 r 阅读全文
posted @ 2023-09-23 11:19 Chiffon1996 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 表格元素居中 tr:last-child td, tr:last-child th { padding: 16px; vertical-align: middle; } 文字下方打点 .underline_dotted { padding-bottom: 2px; cursor: pointer; 阅读全文
posted @ 2023-09-15 16:11 Chiffon1996 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 想让子元素撑满父元素,首先想到的就是 height:100% ,但是却经常无效…… 究其原因,大概是因为其父元素没有“固定”的高度--无法在子元素全部绘出之前计算出其高度,那么子元素的100%高度也就没有意义了。 典型的情形一,设置div的高度撑满浏览器窗口。 <!DOCTYPE html> <ht 阅读全文
posted @ 2023-09-08 16:05 Chiffon1996 阅读(388) 评论(0) 推荐(0) 编辑
摘要: ``` // useAutoRequest.ts /* * @Date: 2023-02-10 09:55:20 * @Description: useAutoRequest */ import { Ref, ref } from 'vue'; type TApiFun> = (...params: 阅读全文
posted @ 2023-08-23 11:57 Chiffon1996 阅读(16) 评论(0) 推荐(0) 编辑
摘要: ##1、template 缺少必要参数、接口数据缺失 ![](https://img2023.cnblogs.com/blog/2773051/202308/2773051-20230811105623229-429987619.png) ![](https://img2023.cnblogs.co 阅读全文
posted @ 2023-08-11 10:58 Chiffon1996 阅读(29) 评论(0) 推荐(0) 编辑
摘要: ###409错误是什么 HTTP 409 错误状态码表示**冲突(Conflict)**。当服务器在处理请求时发现了冲突,而无法解决这个冲突时,就会返回 409 错误。这种情况通常发生在多个请求尝试更新相同资源的情况下,而这些请求之间存在不一致或冲突。 例如,假设有两个请求同时尝试更新同一个资源的不 阅读全文
posted @ 2023-08-09 09:19 Chiffon1996 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 首先 安装 homebrew ``` /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ``` 其次安装tree 命令 ``` brew install tr 阅读全文
posted @ 2023-08-02 10:19 Chiffon1996 阅读(162) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页