摘要: js实现可输入的下拉框 德国 挪威 瑞士 阅读全文
posted @ 2017-02-20 16:09 LinVan 阅读(24794) 评论(2) 推荐(1)
摘要: 可以使用$.parser.parse();这个方法进行处理; 例如: $.parser.parse(); 表示对整个页面重新渲染,渲染完就可以看到easyui原来的样式了; var targetObj = $("<input name='mydate' class='easyui-datebox'> 阅读全文
posted @ 2017-02-15 14:32 LinVan 阅读(1769) 评论(0) 推荐(0)
摘要: 发现问题:最近 遇到由于复制对象之后,改变复制后的新变量,原先被复制的对象居然会跟着变。 EX:java中: //holidayConfig.getEnd_time()会随着sTime的改变而改变 sTime = holidayConfig.getEnd_time(); sTime.setDate( 阅读全文
posted @ 2017-01-19 14:49 LinVan 阅读(288) 评论(0) 推荐(0)
摘要: 1 private static SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 2 3 /** 4 * 获取单元格的值 5 * 6 * @param cell 7 * @return 8 */ 9 public... 阅读全文
posted @ 2017-01-14 15:37 LinVan 阅读(991) 评论(0) 推荐(0)
摘要: 1 //这篇随笔是为了提醒自己避免重复错误 2 3 4 5 //原先的代码是这样的,想着输出会是9.00,可是结果却是0.00 6 BigDecimal day_fee = new BigDecimal("0.00"); 7 day_fee.add( new BigDecimal("9.00")); 8 System.out.print("day_fee:" + day_f... 阅读全文
posted @ 2016-12-16 17:43 LinVan 阅读(12499) 评论(0) 推荐(0)
摘要: //如果只需要一个子属性从value出发 {field:'customer',title:'会员手机',width:100, formatter: function(value,row,index){ if (value.phone){ return value.phone; ... 阅读全文
posted @ 2016-12-14 14:09 LinVan 阅读(7486) 评论(0) 推荐(0)
摘要: 1、a different object with the same identifier value was already associated with the session。 错误原因:在hibernate中同一个session里面有了两个相同标识但是是不同实体。 解决方法一:sessio 阅读全文
posted @ 2016-12-07 14:27 LinVan 阅读(246) 评论(0) 推荐(0)
摘要: 一、获取服务器IP 1 String addr = InetAddress.getLocalHost().getHostAddress();//获得本机IP 二、获取客户端本机IP 阅读全文
posted @ 2016-12-05 10:47 LinVan 阅读(30755) 评论(3) 推荐(0)
摘要: 1 从Request对象中可以获取各种路径信息,以下例子: 2 假设请求的页面是index.jsp,项目是WebDemo,则在index.jsp中获取有关request对象的各种路径信息如下 3 String path = request.getContextPath(); 4 String basePath = request.getSche... 阅读全文
posted @ 2016-12-05 09:56 LinVan 阅读(6138) 评论(0) 推荐(0)
摘要: 原文:http://blog.sina.com.cn/s/blog_6fef491d0100obdd.html 终于要说ManyToMany了 场景:Product和Customer。 先看TestProduct.java 注意这里的ManyToMany什么都没有写。 再看TestCustomer. 阅读全文
posted @ 2016-11-28 14:33 LinVan 阅读(770) 评论(0) 推荐(0)