沐若清辰
人生如茶,浓也好,淡也好,各有味道
posts - 35,comments - 3,views - 57854
09 2020 档案
css 如何实现右边div高度随着左边div内容的增加,右边div的高度也增加(如何是左边div与右边div高度保持一致)
摘要:<template> <div class="indexOne"> <div class="nav_info"> <div class="left_info">4444444444444444444444444666666666666666666666668666666666666666666666 阅读全文
posted @ 2020-09-27 17:31 沐若清辰 阅读(723) 评论(0) 推荐(0) 编辑
监听页面滚动防抖,以及节流
摘要://1.与router文件并列新建一个utils/unils.js,在里面编写页面防抖方法 // 用于存储工具方法 export default { debounce (fn, wait, time) { var previous = null // 记录上一次运行的时间 var timer = n 阅读全文
posted @ 2020-09-27 15:27 沐若清辰 阅读(1705) 评论(0) 推荐(0) 编辑
密码设置有关方法:不能相同字母,不能为连续字符
摘要://判断密码不能输入相同字母 removeRepeatStr(str){ //不能为相同字符 var newStr = ''; var len = str.length; for(var i=0; i<len; i++){ if(newStr.indexOf(str[i]) 1){ newStr = 阅读全文
posted @ 2020-09-23 16:31 沐若清辰 阅读(2430) 评论(0) 推荐(0) 编辑
vue 导出功能 后端返回流
摘要:1. import XLSX from 'xlsx' import ES6Promise from 'es6-promise' 2.入参增加 responseType: 'blob', 例如: exportTemporaryList: params => { return api.get({url: 阅读全文
posted @ 2020-09-18 17:28 沐若清辰 阅读(618) 评论(0) 推荐(0) 编辑
Vue3.0版本以上路由跳转控制台报错调整
摘要://报错信息 Uncaught (in promise) NavigationDuplicated {_name: "NavigationDuplicated", name: "NavigationDuplicated", message: "Navigating to current locati 阅读全文
posted @ 2020-09-10 18:21 沐若清辰 阅读(1142) 评论(0) 推荐(0) 编辑
vue-cli3.0 项目如何使用sass less
摘要:vue-cli3.0 项目如何使用sass less 备注:vue-cli2.0 安装之后需要在webpack.base.config.js,但是vue-cli3.0 npm install node-sass --save-dev npm install sass-loader --save-de 阅读全文
posted @ 2020-09-10 16:18 沐若清辰 阅读(1899) 评论(0) 推荐(0) 编辑
vue-element-admin项目npm install 安装不成功问题
摘要:npm install 安装是报 npm ERR! code Z_BUF_ERROR npm ERR! errno -5 npm ERR! zlib: unexpected end of file npm ERR! A complete log of this run can be found in 阅读全文
posted @ 2020-09-10 11:51 沐若清辰 阅读(4682) 评论(0) 推荐(0) 编辑
封装axios
摘要:import axios from 'axios' import qs from 'qs' import { MessageBox } from 'element-ui' import toast from '@/components/toast/toast.js' import router fr 阅读全文
posted @ 2020-09-08 16:15 沐若清辰 阅读(85) 评论(0) 推荐(0) 编辑
element ui判断是否必填添加校验
摘要:<template> <div> <div class="app"> <!-- 应用测滑表单 --> <transition name="fade"> <div class="slide-set-wrap" v-if="appFormVisible" style="width: 470px;"> < 阅读全文
posted @ 2020-09-08 15:47 沐若清辰 阅读(2156) 评论(0) 推荐(0) 编辑
element ui上传图片限制尺寸(宽、高、)大小、格式等
摘要:<el-upload class="upload-demo" :action="uploadLi" :before-upload="beforeUpload" :on-success="handleSuccess" :headers="{'X-User-Token': authorization}" 阅读全文
posted @ 2020-09-04 10:22 沐若清辰 阅读(3401) 评论(0) 推荐(0) 编辑
wangeditor编辑器添加行高、字体大小、上传视频等功能;以及编辑器的调用
摘要:(function (global, factory) { typeof exports 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define 'function' && defi 阅读全文
posted @ 2020-09-04 09:14 沐若清辰 阅读(1350) 评论(2) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 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 31 1 2 3 4 5

点击右上角即可分享
微信分享提示