会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
吃鸡小能手
从小胃不好,医生建议吃软饭
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
下一页
2021年9月13日
文字超出 ,字体缩小以显示完整
摘要: window.onload = function () { var divHeight = document.getElementById('chenqi').clientWidth//获取容器固定宽度 var scrollWidth = document.getElementById('chenq
阅读全文
posted @ 2021-09-13 17:19 吃鸡小能手
阅读(248)
评论(0)
推荐(0)
2021年8月4日
antd——V修改弹框样式
摘要: <div class="centerModal" v-if="yjpic&&yjpic!=''" ref='centerModal'> <a-modal :getContainer="()=>$refs.centerModal" :visible="sfpic" :confirm-loading="
阅读全文
posted @ 2021-08-04 20:06 吃鸡小能手
阅读(903)
评论(0)
推荐(1)
去除两端空格
摘要: 两端str.replace(/^\s+|\s+$/gm, ''); 1、表达式“/(^s*)/g”去掉左边空格 2、表达式“/(s*$)/g” 去掉右边空格 3、使用方法 replace(/(^s*)/g, "");
阅读全文
posted @ 2021-08-04 17:37 吃鸡小能手
阅读(67)
评论(0)
推荐(0)
2021年6月21日
防抖函数
摘要: /** * @param {Function} fn 防抖函数 * @param {Number} delay 延迟时间 */ export function debounce(fn, delay) { var timer; return function () { var context = th
阅读全文
posted @ 2021-06-21 16:08 吃鸡小能手
阅读(28)
评论(0)
推荐(0)
2021年6月3日
video.js汉化
摘要: import videojs from 'video.js' import video_zhCN from 'video.js/dist/lang/zh-CN.json' import 'video.js/dist/video-js.css'; import tools from "@/utils/
阅读全文
posted @ 2021-06-03 16:08 吃鸡小能手
阅读(384)
评论(0)
推荐(0)
2021年5月13日
vscode 设置
摘要: 安装好 Settings Sync 拓展,ctrl(mac 是 command) + shift + p,输入 sync,点击 Sync: Download Settings,输入 access token 和 gist id,泡杯咖啡,等待同步完成。 github:ghp_ixKloDjaYckF
阅读全文
posted @ 2021-05-13 14:58 吃鸡小能手
阅读(74)
评论(1)
推荐(0)
2021年4月29日
修改文件上传 文件名
摘要: var aafile = fileList[0];///原上传文件 var file = new File([aafile], "aa.mp4");//修改后的文件名称
阅读全文
posted @ 2021-04-29 16:46 吃鸡小能手
阅读(242)
评论(0)
推荐(0)
2021年4月25日
vue 去掉eslint
摘要: vue.config.js///文件 module.exports = { lintOnSave: false,////去掉eslint }
阅读全文
posted @ 2021-04-25 10:12 吃鸡小能手
阅读(202)
评论(0)
推荐(0)
2021年4月21日
对象数组去重
摘要: const res = new Map(); let newArray = array.filter( (arr) => !res.has(arr.F_XMBH) && res.set(arr.F_XMBH, 1) ); console.log(newArray);
阅读全文
posted @ 2021-04-21 10:06 吃鸡小能手
阅读(20)
评论(1)
推荐(0)
2021年3月26日
获取到富文本内容 修改img样式
摘要: const regex = new RegExp('<img', 'gi') res.details = details.replace(regex, `<img style="max-width: 100%; height: auto"`);
阅读全文
posted @ 2021-03-26 09:25 吃鸡小能手
阅读(398)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页
公告