js rgba颜色转换
摘要:// 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) 编辑
npm yarn 淘宝镜像命令设置
摘要:一、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) 编辑
vue+axios+ts封装
摘要:1.结构目录 2.新建request目录 type.ts import type { AxiosRequestConfig, AxiosResponse } from 'axios'; // 拦截器的类型 export interface InRequestInterceptors<T = Axio
阅读全文
posted @
2023-07-03 16:51
写最骚的代码
阅读(766)
推荐(0) 编辑