摘要: <> String类型判断为空有三种: Sting number; 1. StringUtils.isBlank(number); 2. numberisEmpty() 3. "".equal(number) || null == number <> int类型判断为空: int number; n 阅读全文
posted @ 2017-11-13 14:30 AoLei 阅读(2981) 评论(1) 推荐(0) 编辑
摘要: 样式: .table td:hover{ overflow: visible; white-space: normal; } .table td { max-width:200px; word-wrap: break-word; overflow: hidden; text-overflow: el 阅读全文
posted @ 2017-07-03 16:18 AoLei 阅读(922) 评论(0) 推荐(0) 编辑
摘要: 1.利用cookie对象 Cookie是服务器保存在客户端中的一小段数据信息。使用Cookie有一个前提,就是客户端浏览器允许使用Cookie并对此做出相应的设置。一般不赞成使用Cookie。 (1)后台代码 Cookie cookie=new Cookie("name", "hello"); re 阅读全文
posted @ 2017-01-09 13:39 AoLei 阅读(29309) 评论(0) 推荐(1) 编辑
摘要: 1.List<Map<String,String>>的遍历: 2.两个List<Map<String,String>>相互比较,有相同数据时某些字段相加减 inOrderList与outOrderList放自己的所比较的数据,name,number,id为map的key值 3.单个List<Map< 阅读全文
posted @ 2017-01-04 16:12 AoLei 阅读(57072) 评论(0) 推荐(3) 编辑
摘要: var printSetup = function(){ // 打印页面设置 wb.execwb(8,1); }; var printPreView = function(){ // 打印页面预览 wb.execwb(7,1); }; var printIt = function(){ if (co 阅读全文
posted @ 2017-01-04 15:59 AoLei 阅读(412) 评论(1) 推荐(0) 编辑
摘要: 看到标题就已经很明了了: 两种情况: 1.你想查询一条数据,但返回两条数据: 2.你想查询多条数据,但是前台限制只能查询一条 (1) 检查自己的数据sql语句写对没有(关于mybaties的sql操作自己百度) (2) 查看mybaties的返回值(resultType或resultMap),可以返 阅读全文
posted @ 2017-01-04 15:51 AoLei 阅读(153141) 评论(5) 推荐(9) 编辑
摘要: Eclipse Code Template 设置自动加注释 设置注释模板的入口: Window->Preference->Java->Code Style->Code Template 然后展开Comments节点就是所有需设置注释的元素啦。现就每一个元素逐一介绍: 文件(Files)注释标签: / 阅读全文
posted @ 2016-11-03 18:06 AoLei 阅读(5864) 评论(0) 推荐(0) 编辑
摘要: 动态获取数据说白点就是从后台传值到前台,前台把这些值赋值给x轴与y轴(这里指的是你X轴与Y轴都是变化的数据,如果你的X轴是固定的,像时间等等的那就另说)。 柱状图的动态传值: 阅读全文
posted @ 2016-09-27 11:23 AoLei 阅读(7717) 评论(0) 推荐(0) 编辑
摘要: 需求如下 现有数据列三列 Name,Age,CreateDate 数据 张三,18,2000-12-09 :12:34:56 李四,28,2000-12-09 :12:34:56 王麻子,38,2000-12-09 :12:34:56 Jquery Easyui DataGrid中列设置 { fie 阅读全文
posted @ 2016-09-27 11:02 AoLei 阅读(1236) 评论(0) 推荐(0) 编辑
摘要: jQuery有一个自带的函数为parseInt();这个函数可以把字符型的数字转换成整形例如: parseInt("1234"); //返回1234 parseInt("1234A"); //返回1234 parseInt("1234A5"); //返回1234 parseInt("A1234"); 阅读全文
posted @ 2016-09-27 11:01 AoLei 阅读(18862) 评论(0) 推荐(0) 编辑