摘要: public class Test{ public static void main(String[] args) throws Exception{ /*DecimalFormat参数,如果是0则会显示0,如果是#怎不显示0*/ DecimalFormat df = new DecimalForm 阅读全文
posted @ 2016-06-30 18:04 N神3 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 阅读目录 1. 需求分析 2. 实现思路 3. 实现细节 4. 演示说明 5. 本文总结 本文要介绍的是网页中常见的图片上传后直接在页面生成小图预览的实现思路,考虑到该功能有一定的适用性,于是把相关的逻辑封装成了一个ImageUploadView组件,实际使用效果可查看下一段的git效果图。在实现这 阅读全文
posted @ 2016-06-30 16:40 N神3 阅读(403) 评论(0) 推荐(0) 编辑
摘要: public class FileAccess{ public static boolean Move(File srcFile, String destPath) { // Destination directory File dir = new File(destPath); // Move f 阅读全文
posted @ 2016-06-30 16:22 N神3 阅读(147) 评论(0) 推荐(0) 编辑
摘要: JSON net.sf.json 1.JAR包简介 要使程序可以运行必须引入JSON-lib包,JSON-lib包同时依赖于以下的JAR包: commons-lang.jar commons-beanutils.jar commons-collections.jar commons-logging. 阅读全文
posted @ 2016-06-30 12:07 N神3 阅读(112) 评论(0) 推荐(0) 编辑
摘要: JSON操作借用JSON-lib包,JSON-lib包同时依赖于以下的JAR包: json-lib-2.4-jdk15.jar commons-logging.jar commons-beanutils.jar commons-collections.jar ezmorph.jar /** *jso 阅读全文
posted @ 2016-06-30 12:00 N神3 阅读(152) 评论(0) 推荐(0) 编辑
摘要: /** * 排序控制* @author Mr.chen 2016-6-1 */ public class OrderItem { //列名(对应实体的属性命名规范) String columnName; //排序方式 OrderOption option = OrderOption.DESC; pu 阅读全文
posted @ 2016-06-30 10:03 N神3 阅读(205) 评论(0) 推荐(0) 编辑