摘要: 多个Form内容统一提交验证 1 <el-form ref="form1"></el-form> 2 <el-form ref="form2"></el-form> 3 <el-form ref="form3"></el-form> 4 <el-form ref="form4"></el-form> 阅读全文
posted @ 2023-08-28 13:39 艾莱克 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 1、生成数组 当你需要要生成一个 0-99 的数组 方案 1 const createArr = (n) => Array.from(new Array(n), (v, i) => i) const arr = createArr(100) // 0 - 99 数组 方案 2 const creat 阅读全文
posted @ 2023-07-19 13:19 艾莱克 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 常见的 JavaScript 手写功能,重要的地方已添加注释。有的是借鉴别人的,有的是自己写的,如有不正确的地方,欢迎多多指正,共同进步,谢谢! 1、防抖 function debounce(fn, delay) { let timer return function (...args) { if 阅读全文
posted @ 2022-08-26 15:59 艾莱克 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 一、安装 vue-json-excel 依赖 1 npm install vue-json-excel --save 参数列表: 参数 类型 说明 default data Array 要导出的数据。 fields Object 要导出的 JSON 对象中的字段。如果未提供,则将导出 JSON 中的 阅读全文
posted @ 2022-08-17 16:44 艾莱克 阅读(3838) 评论(1) 推荐(0) 编辑
摘要: 和风天气 和风天气官网: https://www.qweather.com/和风天气提供全球天气预报、气象可视化、商业化气象服务和天气API数据,包括30天预报、灾害预警、空气质量AQI、历史天气、生活指数、分钟降水、交通天气等主要是:免费 第一步:注册账号,自己注册登录就行。注册网址: https 阅读全文
posted @ 2021-04-01 11:23 艾莱克 阅读(2729) 评论(0) 推荐(0) 编辑
摘要: .viewOne{ height: calc(100vh - 30rpx); }浏览器上显示 .viewOne{ height: calc(70vh); } 上面的明显就不对,下面展示有效的写法: .viewOne{ height: calc(~"100vh - 30rpx"); } 在浏览器查看页 阅读全文
posted @ 2021-01-24 21:12 艾莱克 阅读(565) 评论(0) 推荐(0) 编辑
摘要: 解决方案1.将字体丢服务器上,引入 style里可以这样 @font-face { font-family: 'DFPShaoNvW5-GB'; src: url('https://xxxxxxxxxx/xxxx.ttf'); } onLoad里可以这样 wx.loadFontFace({ fami 阅读全文
posted @ 2020-12-18 10:04 艾莱克 阅读(2445) 评论(0) 推荐(0) 编辑
摘要: 在同时有多个git账号配置的时候,通常我们都会在~/.ssh文件夹下添加一个config文件,用来配置多个 git ,但是因为对 config 文件中的 Host 和 Hostname 理解不深入导致ssh -T git@xxx.com很久通不过。 在config中,Host在配置中是别名,Host 阅读全文
posted @ 2020-11-24 16:29 艾莱克 阅读(4320) 评论(0) 推荐(0) 编辑
摘要: view换行:white-space:pre-line; text换行:word-break:break-all; 阅读全文
posted @ 2020-05-21 10:52 艾莱克 阅读(7134) 评论(0) 推荐(0) 编辑
摘要: 1.利用Set对象和数组的Array.from方法 var arr = [aaa,bbb,ccc,aaa]; console.log(Array.from(new Set(Arr))) // [aaa,bbb,ccc] 阅读全文
posted @ 2020-05-19 16:17 艾莱克 阅读(165) 评论(0) 推荐(0) 编辑