自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(32)
  • 收藏
  • 关注

原创 url重定向,循环请求一个url列表,如果接口调通则停止循环,跳转到相应页面

url重定向,遍历

2024-09-26 11:01:58 146

原创 列表中的audio,播放其中一个,其他暂停

【代码】列表中的audio,播放其中一个,其他暂停。

2024-06-19 14:21:00 227

原创 详解flex布局的元素如何分配容器的剩余空间

左右两侧容器高度同步,右侧内容分配容器高度。

2024-05-31 14:12:34 368

原创 鼠标悬浮的时候显示滚动条

【代码】鼠标悬浮的时候显示滚动条。

2024-05-29 16:35:43 277

原创 js获取滚动条的宽度

【代码】js获取滚动条的宽度。

2024-05-29 16:27:42 400

原创 设置table的tr高度,第一行固定高度,其余高占满父级高度

设其他行高度为100%

2024-05-29 16:23:27 734

原创 css双边框

【代码】css双边框。

2024-05-29 14:05:29 253

原创 element日期选择器——周从周一开始,格式改成年月日

【代码】element日期选择器——周从周一开始,格式改成年月日。

2024-05-28 17:18:07 784

原创 element 日历,点击上个月下个月的方法

如图所示,日历中有内容的日期有标识,可点击d。

2024-05-28 16:30:49 1271

原创 vue element form表单动态添加的多个表单rules校验

rules="rules.contactNumber"要单独写一下。

2024-05-14 17:29:55 747

原创 vue 下拉框中悬浮显示详情,下拉框中添加按钮

如图所示,展开下拉框时,每条列表悬浮显示详情。

2024-05-14 17:19:55 617

原创 修改svg-icon的颜色

首先要把svg中fill="currentColor",不改没有效果。

2024-05-14 17:10:59 318

原创 vue-pdf预览,分页切换

【代码】vue-pdf预览,分页切换。

2024-04-11 13:26:40 623 1

原创 table行内编辑,校验时间

【代码】table行内编辑,校验时间。

2024-04-08 10:52:51 247 1

原创 input中数据格式为金额

input中输入数据为金额格式,且保留两位小数。

2024-04-08 10:28:36 381 1

原创 图片url转成file文件

url 转文件格式

2023-01-03 15:16:03 1553

原创 纯css3仿雷达图扫描

css3 雷达图

2023-01-03 15:08:31 511

原创 vue中pdf预览,报错(Cannot read properties of undefined (reading ‘catch‘))解决

vue中pdf预览,报错(Cannot read properties of undefined (reading ‘catch‘))解决

2022-11-29 16:50:50 5155

原创 js小数点问题

js 小数点

2022-11-09 10:30:47 225

原创 js正则判断input值

js正则判断input值为数字或小数点两位,正整数,防止SQL注入,首尾不能是空格,包含特殊字符

2022-08-30 15:29:37 533

原创 element table表头设置换行

element table表头换行

2022-08-29 14:24:59 1259

原创 element table合并单元格

element table 合并单元格

2022-08-16 10:42:28 1174

原创 vue table打印

table打印

2022-08-16 10:11:50 839

原创 element table 导出excel并设置excel样式列宽

table 导出,设置excel样式和列宽

2022-08-16 10:01:47 2129

原创 echarts x轴以时间为间隔,不规则数据

echarts x轴固定间隔

2022-06-29 14:49:18 8347 2

原创 bus.js

创建bus.js文件// bus.js文件内容import Vue from 'vue'const Bus = new Vue()export default Bus全局引入bus.jsimport Bus from '@/api/bus'Vue.prototype.$bus = Bus局部引入import Bus from '@/api/bus'a组件中this.$bus.$emit("busEvent");b组件中接收mounted: function..

2022-04-12 17:06:17 1143

原创 关于async ,await,promise执行顺序

async function async1(){ console.log('async1 start') //2 await async2() console.log('async1 end') //6 } async function async2(){ console.log("async2") //3 } console.lo...

2022-03-24 17:28:30 111

原创 element 日期开始结束时间限制

<el-form-item label="开始时间"> <el-date-picker v-model="formData.startTime" type="date" :picker-options="startTimeOptions" format="yyyy-MM-dd" value-format=...

2022-03-24 11:28:05 299

原创 图片裁剪vue-cropper使用

安装:npm install vue-cropper<el-upload ref="upload" class="avatar-uploader" accept=".jpg,.jpeg,.png,.gif" action="" ...

2022-03-24 11:11:04 1797

原创 element的message同时只弹一个框

let doms=document.getElementsByClassName('el-message')[0]if(doms==undefined){ this.$message({ message: "", type: "error", offset: 300, dur...

2022-03-24 10:42:11 272

原创 element浏览器返回时,导航高亮显示对应页面

<el-menu class="el-menu-vertical-demo" :unique-opened="uniqueopened" :default-active="activePathFn" :collapse-transition="collapse_transition" :collapse="isCollapse"> </el-menu>...

2022-03-24 10:29:35 239

原创 axios终止请求

1.单个请求终止import axios from 'axios'data() { return { cancelPending:null } },const CancelToken = axios.CancelToken;axios.get(url, { cancelToken: new CancelToken((c)=> this.cancelP...

2022-03-24 10:21:05 3266

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除