摘要: 数据类型 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 阅读(109) 评论(0) 推荐(0) 编辑
摘要: Jpa创建筛选器自动忽略nul值进行搜索 //创建一个筛选器 ExampleMatcher exampleMatcher = ExampleMatcher.matching().withMatcher("code", ExampleMatcher.GenericPropertyMatchers.co 阅读全文
posted @ 2020-07-27 22:24 JaminYe 阅读(457) 评论(0) 推荐(0) 编辑
摘要: layui单元格换行 使其能显示,如果左右列固定,在done回调中使用下方方法 .layui-table-cell { height: auto; } //固定行随单元格自动调整 function autoFixedHeight(tableElem) { // 获取表格div var $tableV 阅读全文
posted @ 2020-07-27 22:15 JaminYe 阅读(1497) 评论(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 阅读(1238) 评论(3) 推荐(0) 编辑
摘要: 在layui初始化完成之后done回调中调用该方法,同一列中有相同值会合并,第二个值需在控制台尝试 var execRowspan = function(fieldName,index,flag){ // 1为不冻结的情况,左侧列为冻结的情况 let fixedNode = index=="1"?$ 阅读全文
posted @ 2020-07-27 22:12 JaminYe 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 关于jpa example使用 一个搜索匹配两个 阅读全文
posted @ 2020-07-27 22:10 JaminYe 阅读(182) 评论(0) 推荐(0) 编辑
摘要: mui下拉菜单 <div id="pullrefresh" class="mui-content mui-scroll-wrapper"> <div class="mui-scroll"> <ul class="mui-table-view mui-table-view-chevron" id="l 阅读全文
posted @ 2020-07-27 22:08 JaminYe 阅读(1069) 评论(0) 推荐(0) 编辑
摘要: img在div中居中 div{ display: flex; justify-content: center; align-items: center; } <!--外层div 加上样式--> 阅读全文
posted @ 2020-07-27 22:06 JaminYe 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 高德地图定位api使用 <!--<script src='https://webapi.amap.com/maps?v=2.0&key=你的key'></script>--> var amp = AMap.plugin('AMap.Geolocation', function () { geoloc 阅读全文
posted @ 2020-07-27 22:05 JaminYe 阅读(589) 评论(0) 推荐(0) 编辑
摘要: 高德地图驾车导航使用 传入起点终点 返回路线长度,耗时,路线规划 function (lon, lat) { var destination = [lon, lat]; var index = layer.msg("查询中....", {time: 0, shade: 0.01}) $.ajax({ 阅读全文
posted @ 2020-07-27 22:04 JaminYe 阅读(247) 评论(0) 推荐(0) 编辑