摘要:
我们先写个tree组件 递归组件 tree.vue文件 <template> <ul class="ul-wrapper"> <!-- 包裹层--> <li v-for="item in list" :key="item.key"> <!-- 遍历--> <div> <!-- 是否展开图标--> < 阅读全文
2021年8月31日
2021年4月15日
摘要:
const modalHelper = { scrollTop: 0, afterOpen() { modalHelper.scrollTop = document.scrollingElement.scrollTop document.body.classList.add('modal-open' 阅读全文
2020年12月18日
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 阅读全文
2020年7月23日
摘要:
//上传图片尺寸验证 beforeQrcodeUpload(file) { const isJpg = /image\/(png|jpe?g|gif)$/.test(file.type); const isLt2M = file.size / 1024 / 1024 < 2; if (!isJpg) 阅读全文
2020年6月9日
摘要:
//设置cookie setCookie(c_name, value, expiredays, domain) { var exdate = new Date(); exdate.setDate(exdate.getDate() + expiredays); document.cookie = c_ 阅读全文
2019年11月14日
摘要:
//解决微信浏览器web页面键盘收起页面不回弹 //方案一 function isWeiXinAndIos() { let ua = '' + window.navigator.userAgent.toLowerCase() let isWeixin = /MicroMessenger/i.test 阅读全文
2019年9月5日
摘要:
在window.location=url后面加上一个时间戳,即动态获取的一个时间参数。 即,将window.location=url改为window.location=url?+时间参数 //以下添加时间戳的方法,经过她本人测试后还是无法解决。window.location.href = url + 阅读全文
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>"); 阅读全文