会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
不服憋着
博客园
首页
新随笔
联系
订阅
管理
随笔 - 97
文章 - 0
评论 - 1
阅读 -
10万
1
2
3
4
5
···
10
下一页
2023年7月13日
解决js计算0.1时不准确问题
摘要: const compute = { // 加法运算 accAdd(arg1, arg2) { let r1; let r2; let m; let c; try { r1 = arg1.toString().split('.')[1].length; } catch (e) { r1 = 0; }
阅读全文
posted @ 2023-07-13 19:38 不服憋着
阅读(114)
评论(0)
推荐(0)
2023年4月11日
vue 预览PDF、Docx、EXCEL文件
摘要: <template> <div class="contentArea"> <div class="fileContainer" ref="fileDiv" v-if="$route.query.fileName.indexOf('docx') !== -1"></div> <div class="f
阅读全文
posted @ 2023-04-11 10:42 不服憋着
阅读(463)
评论(0)
推荐(0)
2023年3月22日
图片显示(后端返回接口在预览中展示图片,响应无返回)后端返回二进制图片前端乱码解决方案
摘要: https://blog.csdn.net/weixin_46801282/article/details/123386264 // base64数据 this.imgSrc = 'data:image/jpg;base64,' + res.payload.imageStr; 解决方案一:后端把图片
阅读全文
posted @ 2023-03-22 17:26 不服憋着
阅读(605)
评论(0)
推荐(0)
2022年12月9日
ant-design Table fixed 定位导致高度不一致(解决方案)
摘要: <a-table :columns="columns" :rowKey="record=>record.rowId" :data-source="data" :scroll="{x:true}" :pagination='false' 当点击按钮编辑table里面的内容时导致,高度变化,需要手动触发
阅读全文
posted @ 2022-12-09 17:42 不服憋着
阅读(1620)
评论(0)
推荐(0)
2022年11月15日
tree 动态添加、删除树结构数据
摘要: tree.vue 组件 <template> <div> <div @click="getData" :style="getDetph(currentItem.level)" class="li"> <span class="icon"></span> <div contenteditable cl
阅读全文
posted @ 2022-11-15 17:10 不服憋着
阅读(212)
评论(0)
推荐(0)
2022年9月1日
vue3 使用element-plus 按需引入
摘要: 1:npm install element-plus --save 2: 组件按需引入所需插件:unplugin-auto-import 、 unplugin-vue-components 图标按需引入所需插件:unplugin-auto-import 、 unplugin-icons npm i
阅读全文
posted @ 2022-09-01 18:31 不服憋着
阅读(1629)
评论(1)
推荐(0)
2022年8月3日
递归过滤树结构数据
摘要: export function getCurrentMenu(dataList, roleList){ let menu = dataList.filter(item =>{ console.log(roleList.indexOf(item.name) !== -1) if(roleList.in
阅读全文
posted @ 2022-08-03 19:20 不服憋着
阅读(112)
评论(0)
推荐(0)
2022年7月20日
身份证号、车牌号(正则校验)
摘要: export const isIdCard = card => { // 身份证号 if (!card) return true let num = card.toUpperCase() // 身份证号码为15位或者18位,15位时全为数字,18位前17位为数字,最后一位是校验位,可能为数字或字符X
阅读全文
posted @ 2022-07-20 15:52 不服憋着
阅读(602)
评论(0)
推荐(0)
2022年7月19日
预览pdf文件
摘要: FileDownload(this.upStandFileId) .then((res) => { // 预览文件 const binaryData = [res.data]; const pdfUrl = window.URL.createObjectURL( new Blob(binaryDat
阅读全文
posted @ 2022-07-19 23:21 不服憋着
阅读(81)
评论(0)
推荐(0)
2022年7月8日
微信小程序生成海报
摘要: 1:Sansnn-uQRCode 导入插件(生成二维码) 2:弹窗展示海报内容 3:createCanvasContext 绘制canvas海报 4:canvasToTempFilePath (canvas转成图片文件) <template> <view class="" v-if="isPaper
阅读全文
posted @ 2022-07-08 15:34 不服憋着
阅读(906)
评论(0)
推荐(0)
1
2
3
4
5
···
10
下一页
公告
昵称:
不服憋着
园龄:
8年2个月
粉丝:
1
关注:
2
<
2025年6月
>
日
一
二
三
四
五
六
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
1
2
3
4
5
6
7
8
9
10
11
12
点击右上角即可分享