会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
闰土的土
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
下一页
2022年1月12日
JS 数字小数正则
摘要: //正负带小数 pattern: /^[+\-]?(?!0\d)\d+(\.\d+)?$/, //正整数 pattern: /^([1-9]\d*|0)?$/, //正数带小数 /^[+]{0,1}(\d+)$|^[+]{0,1}(\d+\.\d+)$/ const re = /^[+]{0,1}(
阅读全文
posted @ 2022-01-12 10:41 闰土的土
阅读(870)
评论(0)
推荐(0)
2022年1月7日
vue-awesome-swiper 轮播图 自定义分页器
摘要: 首先最重要的是安装对应版本的swiper和vue-awesome-swiper,不然会有坑。 我安装的是"swiper": "^4.5.1","vue-awesome-swiper": "^3.1.3"。 然后引入 import "swiper/dist/css/swiper.css"; impor
阅读全文
posted @ 2022-01-07 14:53 闰土的土
阅读(2082)
评论(0)
推荐(0)
2021年12月22日
vue Echarts 地图 自定义图标
摘要: 关于自定义图标 是想在地图上根据经纬度标记点,然后点显示为某logo找了很久没有找到自定义图片的方法,后来想到利用散点图去实现,把图片转为base64利用symbol实现自定义图标。 series: [{ name: '',//series名称 type: 'scatter',//为散点类型 coo
阅读全文
posted @ 2021-12-22 17:18 闰土的土
阅读(1556)
评论(0)
推荐(0)
2021年11月12日
vue 图标选择器
摘要: 来源:http://www.ruoyi.vip/ import Vue from 'vue' import SvgIcon from '@/components/SvgIcon'// svg component // register globally Vue.component('svg-icon
阅读全文
posted @ 2021-11-12 16:59 闰土的土
阅读(1051)
评论(0)
推荐(0)
2021年11月4日
上传附件
摘要: export function UpLoadImg(file) { console.log(file) const param = new FormData() // 创建form对象 param.append('image', file) // 通过append向form对象添加数据 const
阅读全文
posted @ 2021-11-04 14:11 闰土的土
阅读(56)
评论(0)
推荐(0)
Vue封装axios 请求接口
摘要: request.js /* * @Description: * @Author: Nan * @Date: 2021-04-15 09:24:13 * @LastEditors: nanJ * @LastEditTime: 2021-09-17 15:20:28 * @FilePath: \arch
阅读全文
posted @ 2021-11-04 14:08 闰土的土
阅读(324)
评论(0)
推荐(0)
React封装axios 请求接口
摘要: requestService.js import axios from "axios"; import _ from "lodash"; import qs from "qs"; var service = axios.create({ timeout: 40000, headers: { "Con
阅读全文
posted @ 2021-11-04 14:05 闰土的土
阅读(624)
评论(0)
推荐(0)
返回文件流下载附件
摘要: down.js/** * @url 下载地址 * @filename 所需要的文件名称 */ import { getToken } from '@/utils/auth' import { Message } from 'element-ui' export function downFile(u
阅读全文
posted @ 2021-11-04 13:59 闰土的土
阅读(155)
评论(0)
推荐(0)
2021年10月28日
vue el-form 自定义校验规则
摘要: <el-form-item class='fzfp' label='分值分配:' prop='fzfp'> <div v-if='preview'>{{ this.rowData.socreOptionValue }}</div> <div v-else> <el-row class='fzfp_r
阅读全文
posted @ 2021-10-28 10:06 闰土的土
阅读(819)
评论(0)
推荐(0)
2021年10月25日
.eslintrc.js
摘要: module.exports = { root: true, parserOptions: { parser: 'babel-eslint', sourceType: 'module' }, env: { browser: true, node: true, es6: true, }, extend
阅读全文
posted @ 2021-10-25 09:32 闰土的土
阅读(136)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页
公告