随笔 - 50  文章 - 0  评论 - 1  阅读 - 86920
 
摘要: /** *格式化时间 *yyyy-MM-dd hh:mm:ss */ export function formatDate(time, fmt) { if (time undefined || "") { return; } // 兼容ios if ((time + "").indexOf("-") 阅读全文
posted @ 2020-11-10 16:49 写最骚的代码 阅读(171) 评论(0) 推荐(0) 编辑
  2024年8月19日
摘要: git error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500 fatal: the remote end hung up unexpectedly 原因使用http协议进行传输的缓存区太小 解决方案: 将缓 阅读全文
posted @ 2024-08-19 15:01 写最骚的代码 阅读(716) 评论(0) 推荐(0) 编辑
  2024年5月30日
摘要: // 在columns中使用customHeaderCell设置style { title: '设置customHeaderCell', dataIndex: 'id', width: 100, customHeaderCell: () => ({ style: { 'min-width': '10 阅读全文
posted @ 2024-05-30 15:50 写最骚的代码 阅读(153) 评论(0) 推荐(0) 编辑
  2024年3月25日
摘要: <a-select :placeholder="placeholder" mode="multiple" show-arrow show-search class="y_select" > .y_select { width: 100%; ::v-deep .ant-select-selection 阅读全文
posted @ 2024-03-25 17:33 写最骚的代码 阅读(464) 评论(0) 推荐(0) 编辑
  2023年12月11日
摘要: 解决方法:vue版本使用3.3.11 ant版本使用4.0.6就可以了 阅读全文
posted @ 2023-12-11 18:23 写最骚的代码 阅读(101) 评论(0) 推荐(0) 编辑
摘要: const files = import.meta.glob('./*.js',{eager:true}) //会得到一个对象 注意引入路径里绝对不能带有变量,会报错 //{eager:true}是定义是否同步引入的参数,去掉会得到几个异步函数,根据自己的需求写就行了 console.log(fil 阅读全文
posted @ 2023-12-11 16:44 写最骚的代码 阅读(561) 评论(0) 推荐(0) 编辑
  2023年12月6日
摘要: <template> <svg class="load" viewBox="25 25 50 50" :style="{ width: loadWidth, height: loadWidth }" > <circle class="loading_bg" cx="50" cy="50" r="20 阅读全文
posted @ 2023-12-06 10:36 写最骚的代码 阅读(150) 评论(0) 推荐(0) 编辑
  2023年11月2日
摘要: 依赖关系如图: 如果报如题这个错误,并且按照上面node-sass官网的依赖关系依赖对了node版本还不行,那么,请删除node-sass npm uninstall node-sass 然后执行 npm i sass --save-dev 然后运行项目,如果出现类似图片中的错误时,别慌,把所有的/ 阅读全文
posted @ 2023-11-02 16:18 写最骚的代码 阅读(681) 评论(0) 推荐(0) 编辑
  2023年7月21日
摘要: // hex转rgba第一种 const hex2Rgb = (hexValue, alpha = 1) => { const rgx = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; const hex = hexValue.replace(rgx, (m, r, g, 阅读全文
posted @ 2023-07-21 10:04 写最骚的代码 阅读(1081) 评论(0) 推荐(0) 编辑
  2023年7月13日
摘要: 一、Yarn 设置淘宝镜像 1.查询当前配置的镜像 yarn config get registry // 默认:https://registry.yarnpkg.com 2.设置成淘宝镜像 yarn config set registry http://registry.npm.taobao.or 阅读全文
posted @ 2023-07-13 13:15 写最骚的代码 阅读(836) 评论(0) 推荐(0) 编辑
  2023年7月3日
摘要: 1.结构目录 2.新建request目录 type.ts import type { AxiosRequestConfig, AxiosResponse } from 'axios'; // 拦截器的类型 export interface InRequestInterceptors<T = Axio 阅读全文
posted @ 2023-07-03 16:51 写最骚的代码 阅读(766) 评论(0) 推荐(0) 编辑
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示