2021年8月31日

摘要: 我们先写个tree组件 递归组件 tree.vue文件 <template> <ul class="ul-wrapper"> <!-- 包裹层--> <li v-for="item in list" :key="item.key"> <!-- 遍历--> <div> <!-- 是否展开图标--> < 阅读全文
posted @ 2021-08-31 22:36 花谢 阅读(3274) 评论(0) 推荐(0) 编辑

2021年4月15日

摘要: const modalHelper = { scrollTop: 0, afterOpen() { modalHelper.scrollTop = document.scrollingElement.scrollTop document.body.classList.add('modal-open' 阅读全文
posted @ 2021-04-15 15:14 花谢 阅读(352) 评论(0) 推荐(0) 编辑

2020年12月18日

摘要: import axios from "axios"; import qs from "qs"; export interface VictoryResult { CODE: string; MSG: string; DATA?: any; // 老接口的数据 data?: any; message? 阅读全文
posted @ 2020-12-18 16:29 花谢 阅读(2141) 评论(0) 推荐(0) 编辑

2020年9月21日

摘要: var express = require('express') var http = require('http') var path = require('path') var ejs = require('ejs') var app = express() app.set('port',pro 阅读全文
posted @ 2020-09-21 15:10 花谢 阅读(563) 评论(0) 推荐(0) 编辑

2020年7月23日

摘要: //上传图片尺寸验证 beforeQrcodeUpload(file) { const isJpg = /image\/(png|jpe?g|gif)$/.test(file.type); const isLt2M = file.size / 1024 / 1024 < 2; if (!isJpg) 阅读全文
posted @ 2020-07-23 10:06 花谢 阅读(683) 评论(0) 推荐(0) 编辑
 
摘要: import axios from 'axios' import store from 'store' import { Loading, Message } from 'element-ui' //创建loading实例变量 let loadingInstance = null; //创建自定义a 阅读全文
posted @ 2020-07-23 10:03 花谢 阅读(153) 评论(0) 推荐(0) 编辑

2020年6月9日

摘要: //设置cookie setCookie(c_name, value, expiredays, domain) { var exdate = new Date(); exdate.setDate(exdate.getDate() + expiredays); document.cookie = c_ 阅读全文
posted @ 2020-06-09 22:08 花谢 阅读(279) 评论(0) 推荐(0) 编辑

2019年11月14日

摘要: //解决微信浏览器web页面键盘收起页面不回弹 //方案一 function isWeiXinAndIos() { let ua = '' + window.navigator.userAgent.toLowerCase() let isWeixin = /MicroMessenger/i.test 阅读全文
posted @ 2019-11-14 14:18 花谢 阅读(667) 评论(0) 推荐(0) 编辑

2019年9月5日

摘要: 在window.location=url后面加上一个时间戳,即动态获取的一个时间参数。 即,将window.location=url改为window.location=url?+时间参数 //以下添加时间戳的方法,经过她本人测试后还是无法解决。window.location.href = url + 阅读全文
posted @ 2019-09-05 10:32 花谢 阅读(3146) 评论(0) 推荐(0) 编辑

2018年12月6日

摘要: var reg = /(http:\/\/|https:\/\/)((\w|=|\?|\.|\/|&|-)+)/g; if(str.indexOf('<a href=') 1){ // 过滤下a标签 str= str.replace(reg, "<a href='$1$2'>$1$2</a>"); 阅读全文
posted @ 2018-12-06 17:45 花谢 阅读(526) 评论(0) 推荐(0) 编辑