会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
写最骚的代码
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
下一页
[置顶]
个人收藏常用JS方法
摘要: /** *格式化时间 *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 写最骚的代码
阅读(169)
评论(0)
推荐(0)
编辑
2024年5月30日
解决Ant Design of Vue中table组件使用了:scroll="{ x: true }"在Safari浏览器中width失效的问题
摘要: // 在columns中使用customHeaderCell设置style { title: '设置customHeaderCell', dataIndex: 'id', width: 100, customHeaderCell: () => ({ style: { 'min-width': '10
阅读全文
posted @ 2024-05-30 15:50 写最骚的代码
阅读(44)
评论(0)
推荐(0)
编辑
2024年3月25日
antdesign select多选搜索不换行,类似element的select实现方式
摘要: <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 写最骚的代码
阅读(174)
评论(0)
推荐(0)
编辑
2023年12月11日
vue3+ant-design的button组件点击就报错Cannot read properties of undefined (reading 'value')
摘要: 解决方法:vue版本使用3.3.11 ant版本使用4.0.6就可以了
阅读全文
posted @ 2023-12-11 18:23 写最骚的代码
阅读(60)
评论(0)
推荐(0)
编辑
vite5报错Uncaught ReferenceError: require is not defined的代替方案
摘要: const files = import.meta.glob('./*.js',{eager:true}) //会得到一个对象 注意引入路径里绝对不能带有变量,会报错 //{eager:true}是定义是否同步引入的参数,去掉会得到几个异步函数,根据自己的需求写就行了 console.log(fil
阅读全文
posted @ 2023-12-11 16:44 写最骚的代码
阅读(325)
评论(0)
推荐(0)
编辑
2023年12月6日
svg+css实现带灰色背景的loading加载动画组件
摘要: <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 写最骚的代码
阅读(115)
评论(0)
推荐(0)
编辑
2023年11月2日
Syntax Error: Error: Node Sass version 8.0.0 is incompatible with ^4.0.0.
摘要: 依赖关系如图: 如果报如题这个错误,并且按照上面node-sass官网的依赖关系依赖对了node版本还不行,那么,请删除node-sass npm uninstall node-sass 然后执行 npm i sass --save-dev 然后运行项目,如果出现类似图片中的错误时,别慌,把所有的/
阅读全文
posted @ 2023-11-02 16:18 写最骚的代码
阅读(472)
评论(0)
推荐(0)
编辑
2023年7月21日
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 写最骚的代码
阅读(987)
评论(0)
推荐(0)
编辑
2023年7月13日
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 写最骚的代码
阅读(572)
评论(0)
推荐(0)
编辑
2023年7月3日
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 写最骚的代码
阅读(657)
评论(0)
推荐(0)
编辑
2023年6月1日
国内第三方chatGPT链接
摘要: https://chat.plexpt.com/i/634465
阅读全文
posted @ 2023-06-01 11:04 写最骚的代码
阅读(186)
评论(0)
推荐(0)
编辑
1
2
3
4
5
下一页