上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页
摘要: layui文件列表上传实例 <div class="layui-inline" style="margin-left: 132px"> <label class="layui-form-label">文件上传</label> <div class="layui-upload" style="marg 阅读全文
posted @ 2020-07-28 22:23 JaminYe 阅读(1270) 评论(0) 推荐(0) 编辑
摘要: layui多表头 主要是colspan跨几列与rowspan跨几行 cols: [ [ //表头 {type: 'numbers', width: '3%', rowspan: '2', fixed: 'left'}, {field: 'cname', title: '市', align: 'cen 阅读全文
posted @ 2020-07-28 22:20 JaminYe 阅读(862) 评论(0) 推荐(0) 编辑
摘要: layui.open监听页面提交 $("#addBtn").on('click', function () { layer.open({ type: 2, content: "/add.html" area: ['750px', '400px'], title: '添加', scrollbar: f 阅读全文
posted @ 2020-07-28 22:18 JaminYe 阅读(989) 评论(0) 推荐(0) 编辑
摘要: ztree加easyui加候选区 .resource { padding: 5px; height: 16px; border-bottom: 1px dashed #ccc; } .resource:hover { background: #f4f4f4; } .resource .left { 阅读全文
posted @ 2020-07-28 22:17 JaminYe 阅读(102) 评论(0) 推荐(0) 编辑
摘要: ajax提交form的三种方式 序列化 $.ajax({ url:url, dataType:'json', type:'post', data:$("#form").serialize(), }) json字符串 form.on('submit(infoContent)', function (d 阅读全文
posted @ 2020-07-28 22:14 JaminYe 阅读(607) 评论(0) 推荐(0) 编辑
摘要: 数据类型 String 单值缓存 set user:1 json数据 多值缓存 mset user:1:name zhangsan user:1:age 18 分布式锁 setnx key value 返回0或1 防止其他人修改 删除数据 del key value 计数器 incr article 阅读全文
posted @ 2020-07-27 23:03 JaminYe 阅读(110) 评论(0) 推荐(0) 编辑
摘要: Jpa创建筛选器自动忽略nul值进行搜索 //创建一个筛选器 ExampleMatcher exampleMatcher = ExampleMatcher.matching().withMatcher("code", ExampleMatcher.GenericPropertyMatchers.co 阅读全文
posted @ 2020-07-27 22:24 JaminYe 阅读(460) 评论(0) 推荐(0) 编辑
摘要: layui单元格换行 使其能显示,如果左右列固定,在done回调中使用下方方法 .layui-table-cell { height: auto; } //固定行随单元格自动调整 function autoFixedHeight(tableElem) { // 获取表格div var $tableV 阅读全文
posted @ 2020-07-27 22:15 JaminYe 阅读(1514) 评论(0) 推荐(0) 编辑
摘要: 方法不是最优解,需保证表单提交不能有空值 <form class="layui-form layui-form-pane" id="testForm" action=""> <input type="text" name="name"/> <input type="text" name="name" 阅读全文
posted @ 2020-07-27 22:14 JaminYe 阅读(1241) 评论(3) 推荐(0) 编辑
摘要: 在layui初始化完成之后done回调中调用该方法,同一列中有相同值会合并,第二个值需在控制台尝试 var execRowspan = function(fieldName,index,flag){ // 1为不冻结的情况,左侧列为冻结的情况 let fixedNode = index=="1"?$ 阅读全文
posted @ 2020-07-27 22:12 JaminYe 阅读(335) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页