2014年10月23日

java 上传文件

摘要: 1 public static boolean upload(File file, String savepath, String loginNo, 2 String filename) { 3 boolean mResult = false; 4 ... 阅读全文

posted @ 2014-10-23 16:24 hellofking 阅读(120) 评论(0) 推荐(0) 编辑

java 修改文件名

摘要: // 修改文件名 public static boolean modifyFileName(String serverPath, String oldFileName, String newLoginNo) { String oldPath ... 阅读全文

posted @ 2014-10-23 16:23 hellofking 阅读(303) 评论(0) 推荐(0) 编辑

java下载文件

摘要: 1 /** 2 * 3 * @param file 4 * @param response 5 */ 6 private void downLoad(File file, HttpServletResponse response, 7 ... 阅读全文

posted @ 2014-10-23 15:56 hellofking 阅读(114) 评论(0) 推荐(0) 编辑

java复制文件

摘要: 1 /** 2 * @param sourceFile 3 * @param targetFile 4 * @throws IOException 5 */ 6 public static void copyFile(File sourceFile,... 阅读全文

posted @ 2014-10-23 15:52 hellofking 阅读(145) 评论(0) 推荐(0) 编辑

java递归删除指定目录下的文件和文件夹

摘要: public static boolean deleteFolder(String delDir) { File delFolder = new File(delDir); File[] delFile = delFolder.listFiles(); ... 阅读全文

posted @ 2014-10-23 15:51 hellofking 阅读(198) 评论(0) 推荐(0) 编辑

css实现超连接按钮形式显示

摘要: testlink1link2link3link4link5link6 阅读全文

posted @ 2014-10-23 13:22 hellofking 阅读(343) 评论(0) 推荐(0) 编辑

css 文本域textarea显示成label标签

摘要: 1 2 3 textarea显示为label 4 14 31 32 33 34 35 36 37 38 39 40 View Code 阅读全文

posted @ 2014-10-23 12:59 hellofking 阅读(866) 评论(0) 推荐(0) 编辑

javascript判断键盘按键

摘要: window.document.onkeydown = disableRefresh;function disableRefresh(evt){evt = (evt) ? evt : window.eventif (evt.keyCode) { if(evt.keyCode == 116){ ... 阅读全文

posted @ 2014-10-23 12:54 hellofking 阅读(222) 评论(0) 推荐(0) 编辑

导航