摘要:想要H5页面中实现升序,降序的排序功能 : 问题 : 点击排序按钮只可以降序,不能升序 问题代码 : 原因 : 小于0时无法排序, 原因是返回值为 int 类型, 小于0的值变为0,所以无法排序 但是在解决这个问题同时发现了另外一个问题, 因为要做分页处理(每页数据为15条), 数据超过15条数据时
阅读全文
摘要:问题代码: 1 @Transactional //声明式事务 2 def stop(Long id) { 3 ....... 4 // M5系列去停止充电 5 pileJmsService.stopCharge(chargePile, chargeRecord.port, chargeRecord)
阅读全文
摘要:ls -lh //查看文件大小 echo '' > nohup.out //将目标文件变为 ' ' 字符串
阅读全文
摘要:/*simplememory*/#google_ad_c1, #google_ad_c2 {display:none;}.syntaxhighlighter a, .syntaxhighlighter div, .syntaxhighlighter code, .syntaxhighlighter
阅读全文
摘要:获取时间 // 使用默认时区和语言环境获得一个日历 Calendar cal = Calendar.getInstance(); // 赋值时年月日时分秒常用的6个值,注意月份下标从0开始,所以取月份要+1 System.out.println("年:" + cal.get(Calendar.YEA
阅读全文
摘要:TestBiz接口: package example.biz; public interface TestBiz { public String getTest(String str); } TestBizImp接口实现类: package example.biz.imp; import examp
阅读全文
摘要:#####.each { it -> if (!it.####) { return false // 相当于 for循环中的 break }}return true //相当于for循环中的 continue
阅读全文