摘要: 1、java public static String ImageToBase64(String src){ if (src == "" || src == null) { return ""; } File file = new File(src); if (!file.exists()) { r 阅读全文
posted @ 2021-08-05 14:40 唏嘘- 阅读(979) 评论(0) 推荐(0) 编辑
摘要: 1、html <div class="layui-input-block" style="width: 230px ;margin-left: 4px"> <input value="${item.icon!}" type="text" id="iconPicker" lay-filter="ico 阅读全文
posted @ 2021-08-05 14:14 唏嘘- 阅读(1270) 评论(0) 推荐(0) 编辑
摘要: 1、单行省略展示 <div class="test-text"> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa </div> .test-text { width: 100px; white-space: nowrap; overflow: hidden; t 阅读全文
posted @ 2021-08-05 13:58 唏嘘- 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 1、使用的单元格属性cellStyle column:[ { field: 'birthday', title: '生日', align: 'center', cellStyle: columnColorFunction } ] function columnColorFunction (value 阅读全文
posted @ 2021-08-05 12:04 唏嘘- 阅读(1975) 评论(0) 推荐(0) 编辑
摘要: //以下方法在浏览器同一窗口操作self.location.href="/url" 当前页面打开URL页面 location.href="/url" 当前页面打开URL页面 windows.location.href="/url" 当前页面打开URL页面,前面三个用法相同。 parent.locat 阅读全文
posted @ 2021-08-05 11:47 唏嘘- 阅读(1811) 评论(0) 推荐(0) 编辑
摘要: 1、 layui在tab切换时是利用tab下的div显示和隐藏来实现的,而echarts在你页面刷新的时候就渲染出来了, 而第二个tab已经隐藏了,导致echarts自动获取dom的宽高无效,所以使用的是echarts默认的高宽,通过监听tab切换事件然后执行resize进行echarts的重新 h 阅读全文
posted @ 2021-08-05 11:05 唏嘘- 阅读(1201) 评论(0) 推荐(0) 编辑
摘要: var index = parent.layer.getFrameIndex(window.name); //获取窗口索引 parent.layer.close(index); // 关闭当前layer层 阅读全文
posted @ 2021-08-05 10:31 唏嘘- 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 1、新项目再Idea里面启动的时候, 有的时候报错Error running ‘Application’: Command line is too long. Shorten command line for Application or aalso for Spring Boot default 阅读全文
posted @ 2021-08-04 11:56 唏嘘- 阅读(3287) 评论(0) 推荐(0) 编辑
摘要: 直接复写th、td的样式,样式代码如下(外联): .table th, .table td { text-align: center; vertical-align: middle!important; } 阅读全文
posted @ 2021-08-04 11:45 唏嘘- 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 1、判断一个数组中是否包含某元素 arr.indexOf(val) > -1 // 1包含 -1不包含 arr.includes(val) // ES7 true 包含 false 不包含 2、判断一个字符串中是否包含某字符 str.indexOf(res) != -1 // str 存在的字符串( 阅读全文
posted @ 2021-08-04 11:37 唏嘘- 阅读(1390) 评论(0) 推荐(0) 编辑