2014年10月23日

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) 编辑

2014年10月21日

struts2 MessageStoreInterceptor 拦截器的使用

摘要: MessageStoreInterceptor 拦截器可以把和该 Action 相关的 messages, errors 和 field errors(下称 "消息") 保存到session 中(默认放在 Action 中, 而 Action 在 request 中). 以使可以跨请求访问messa... 阅读全文

posted @ 2014-10-21 11:05 hellofking 阅读(238) 评论(0) 推荐(0) 编辑

struts2 result的type属性

摘要: 目前只使用过以下3种,都是直接跳转到另一个actionchain:写法:nextActionnextAction前面不加【/】斜线,上一个action中request中设置的值,在nextAction中可以取到redirect:写法:nextActionnextAction前面加或不加【/】斜线都可... 阅读全文

posted @ 2014-10-21 11:00 hellofking 阅读(156) 评论(0) 推荐(0) 编辑

2014年4月28日

C# Linq Group By 多个字段并返回给实体类List

摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace study 7 { 8 class LinqGroup 9 {1... 阅读全文

posted @ 2014-04-28 16:12 hellofking 阅读(2235) 评论(0) 推荐(0) 编辑

C# 扩展方法克隆实体类

摘要: using System;using System.IO;using System.Runtime.Serialization.Formatters.Binary;using System.Runtime.Serialization;using System.Collections.Concurre... 阅读全文

posted @ 2014-04-28 15:15 hellofking 阅读(1878) 评论(0) 推荐(0) 编辑

2014年4月20日

批量执行插入的sql和自动补零

摘要: DECLARE @invoice_no intSET @invoice_no=3WHILE @invoice_no<=100 --需要插入的次数BEGIN--此处需要执行的插入sql文SET @invoice_no+=1END a 是你要查询的字段4 是你要的字段总位数right函数是从右侧... 阅读全文

posted @ 2014-04-20 16:56 hellofking 阅读(472) 评论(0) 推荐(0) 编辑

导航