上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页

2015年6月2日

时间日期类型格式化

摘要: // 当天 public static DateTime getThisDay() { DateTime now = new DateTime(); return now; } // 上一天 public static DateTime getPrevDay(int year, int month 阅读全文

posted @ 2015-06-02 23:18 蝌蚪的精神 阅读(344) 评论(0) 推荐(0) 编辑

2014年12月11日

gps转百度地图

摘要: HttpResponse res=WS.url(mapUrl+"/ag/coord/convert?from=0&to=4&x="+longitude+"&y="+latitude).get(); String x=new String(Base64.decode(re... 阅读全文

posted @ 2014-12-11 09:38 蝌蚪的精神 阅读(140) 评论(0) 推荐(0) 编辑

2014年10月7日

寄生组合式继承

摘要: function suber (name) { this.name=name; this.frend=["xx","yy"]; } suber.prototype.sayName = function() { ... 阅读全文

posted @ 2014-10-07 15:11 蝌蚪的精神 阅读(441) 评论(0) 推荐(1) 编辑

2014年9月23日

定义变量

摘要: var html1=4; var html2=html1; html2=3; alert(html1)//定义变量是存了两份内存地址 var val=new Object(); var val2=val; val2.name="xxx";//存 的... 阅读全文

posted @ 2014-09-23 09:42 蝌蚪的精神 阅读(123) 评论(0) 推荐(0) 编辑

2014年7月23日

java 代码判断图片格式后缀名称

摘要: /** * 图片判断 */private static String getFormatName(Object o) { try { // Create an image input stream on the image ImageInputS... 阅读全文

posted @ 2014-07-23 02:35 蝌蚪的精神 阅读(1133) 评论(0) 推荐(0) 编辑

2014年7月20日

EXCL poi导入

摘要: public static void importExcel2(File file) throws Exception { InputStream is = new FileInputStream(file); Workbook workbook; ... 阅读全文

posted @ 2014-07-20 14:00 蝌蚪的精神 阅读(720) 评论(0) 推荐(0) 编辑

2014年7月19日

Excel jxl导入导出

摘要: JAVA EXCEL API简介 Java Excel是一开放源码项目,通过它Java开发人员可以读取Excel文件的内容、创建新的Excel文件、更新已经存在的Excel文件。使用该API非Windows操作系统也可以通过纯Java应用来处理Excel数据表。因为是使用Java编写的,所以我们在W... 阅读全文

posted @ 2014-07-19 23:20 蝌蚪的精神 阅读(383) 评论(0) 推荐(0) 编辑

Excel 日期转换

摘要: public static void importExcel2(File file) throws Exception, IOException { Workbook book = Workbook.getWorkbook(file); // 获得第一个工作表对象 ... 阅读全文

posted @ 2014-07-19 12:12 蝌蚪的精神 阅读(252) 评论(0) 推荐(0) 编辑

2014年6月7日

正则表达式去存空格

摘要: 阅读全文

posted @ 2014-06-07 19:38 蝌蚪的精神 阅读(155) 评论(0) 推荐(0) 编辑

2014年5月3日

定时器

摘要: public class Demo { private long time;//间隔的时间 private Runnable task;//指定的任务 private boolean flag = true; private Thread th = null;//默认为nul... 阅读全文

posted @ 2014-05-03 22:49 蝌蚪的精神 阅读(139) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页

导航