摘要: // 数组去重 { const arr = [1,2,3,4,1,23,5,2,3,5,6,7,8,undefined,null,null,undefined,true,false,true,‘中文‘,‘‘,‘‘,‘hello‘,‘中文‘]; // 第一种 const r = [...new Set 阅读全文
posted @ 2019-08-14 11:34 lilelile 阅读(2350) 评论(4) 推荐(0) 编辑
摘要: // // 日期格式化 // 格式 YYYY/yyyy/YY/yy 表示年份 // MM/M 月份 // W/w 星期 // dd/DD/d/D 日期 // hh/HH/h/H 时间 // mm/m 分钟 // ss/SS/s/S 秒 // Date.prototype.Format = funct 阅读全文
posted @ 2019-08-10 13:45 lilelile 阅读(382) 评论(1) 推荐(0) 编辑
摘要: 1.封装ajax 2.获取上一页面传参的方法 阅读全文
posted @ 2019-08-09 11:33 lilelile 阅读(392) 评论(2) 推荐(0) 编辑
摘要: 1.css初始化 2.background 3.jquery选择器模糊匹配 4.canvas画多边形 5.通过css设置canvas背景图片 6.js动态生成变量名 阅读全文
posted @ 2019-07-24 10:03 lilelile 阅读(201) 评论(1) 推荐(0) 编辑
摘要: 1.https://www.imooc.com/article/27831 2.https://blog.csdn.net/lolgenius/article/details/70169493 3.https://www.lanrenzhijia.com/js/3905.html 4.https:/ 阅读全文
posted @ 2019-07-23 16:06 lilelile 阅读(2824) 评论(0) 推荐(0) 编辑
摘要: 1.斜线表头效果 2.表格嵌套使用 3.layui数据表格跨行自动合并 4.layui表格数据变更的处理方式 5.layer弹窗动态添加KindEditor编辑器 6.layer弹出层自动调节位置 7.layui监听单元格编辑,校验不通过时恢复原值 8.layui表格实现合并行或列 9.数据表格多出 阅读全文
posted @ 2019-07-23 16:02 lilelile 阅读(676) 评论(5) 推荐(0) 编辑
摘要: <template> <el-form :model="form" label-width="115px" ref="form" :rules="rules" label-position="left"> <el-row :gutter="20"> <el-col :span="12"> <el-f 阅读全文
posted @ 2019-02-27 09:50 lilelile 阅读(11837) 评论(0) 推荐(0) 编辑
摘要: 1.价格、金额 2.正整数和0 3.0-100的整数(包括0和100) 阅读全文
posted @ 2019-02-27 09:43 lilelile 阅读(238) 评论(1) 推荐(0) 编辑
摘要: ... 阅读全文
posted @ 2019-02-01 17:44 lilelile 阅读(3863) 评论(0) 推荐(0) 编辑
摘要: 获取图片的base64编码 阅读全文
posted @ 2018-11-26 17:39 lilelile 阅读(5268) 评论(5) 推荐(1) 编辑