摘要: 1、引用 form layui.use(['form'], function () { var form = layui.form; $('select').attr('disabled', 'disabled'); //或者 $('select').attr('disabled', true); 阅读全文
posted @ 2021-08-05 16:15 唏嘘- 阅读(1387) 评论(0) 推荐(0)
摘要: 1、问题原因: 在properties 配置文件路径, 直接粘贴复制的文件磁盘路径 properties中不能含有\符号, 否则就会报上面的错误. 2、解决方式: 将properties中的\改为 \\ 或者 / 阅读全文
posted @ 2021-08-05 15:52 唏嘘- 阅读(396) 评论(0) 推荐(0)
摘要: 1、js var conditionJson = { name: staffName, sex: sex, }; var query = {condition: JSON.stringify(conditionJson)}; $('#tableId').bootstrapTable("refresh 阅读全文
posted @ 2021-08-05 15:42 唏嘘- 阅读(1694) 评论(0) 推荐(0)
摘要: 1、异常信息 mybatis出现Result Maps collection already contains value for…BaseResultMap的错误, 2、异常原因 有可能是generatorSqlmapCustom逆向工程的原因 假如使用generatorSqlmapCustom逆 阅读全文
posted @ 2021-08-05 15:17 唏嘘- 阅读(167) 评论(0) 推荐(0)
摘要: 1、正则表达式 let number = "值";var num = /^[0-9]+.?[0-9]*/; //判断字符串是否为数字//判断正整数/[1−9]+[0−9]∗]∗/ if (!num.test(nubmer)) { alert(“请输入数字”); } 阅读全文
posted @ 2021-08-05 15:03 唏嘘- 阅读(376) 评论(0) 推荐(0)
摘要: 1、bootstrapTable //插入一条数据,在日期单元格实现 可选layui日期控件, 每新增一行数据,监听需要日期的单元格,取值然后更新单元格值 $('#tableId').bootstrapTable({ onClickCell: function (field, value, row, 阅读全文
posted @ 2021-08-05 14:54 唏嘘- 阅读(870) 评论(0) 推荐(0)
摘要: 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 唏嘘- 阅读(1163) 评论(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 唏嘘- 阅读(1398) 评论(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 唏嘘- 阅读(480) 评论(0) 推荐(0)
摘要: 1、使用的单元格属性cellStyle column:[ { field: 'birthday', title: '生日', align: 'center', cellStyle: columnColorFunction } ] function columnColorFunction (value 阅读全文
posted @ 2021-08-05 12:04 唏嘘- 阅读(2188) 评论(0) 推荐(0)