2014年12月23日

access 2007 vba 开发中学到的知识(一)

摘要: 使用ado连接本身的数据库,需要先创建一个 adodb.connection的连接对象 Set cn = CreateObject("ADODB.Connection") 数据库的提供者 cn.Provider = "Microsoft.ACE.OLEDB.12.0" CurrentProject.... 阅读全文

posted @ 2014-12-23 19:01 hellofking 阅读(281) 评论(0) 推荐(0) 编辑

2014年12月15日

js 日期控件 可以显示为和历

摘要: 日期控件的js 1 '; 71 _cs[_cs.length] = ''; 72 _cs[_cs.length] = ' '; 73 _cs[_cs.length] = ' '; 74 _cs[_cs.length] = ' '; 75 _cs[_cs.... 阅读全文

posted @ 2014-12-15 11:05 hellofking 阅读(404) 评论(0) 推荐(0) 编辑

2014年11月27日

在Silverlight中打开网页的几种方法

摘要: HtmlPage.PopupWindow HtmlPopupWindowOptions option = new HtmlPopupWindowOptions(); option.Directories = true;//是否开启ie地址栏 option.... 阅读全文

posted @ 2014-11-27 12:59 hellofking 阅读(1609) 评论(0) 推荐(0) 编辑

2014年11月10日

关于textarea标签在谷歌跟火狐可以拖动大小

摘要: 关于textarea标签在谷歌和火狐可以拖动大小而在IE是不会出现这种情况的 解决的方法:我们给这个标签加个 resize: none; 就可以解决了 阅读全文

posted @ 2014-11-10 16:39 hellofking 阅读(136) 评论(0) 推荐(0) 编辑

2014年10月29日

struts2 JS获取上传文件的绝对路径,兼容IE和FF

摘要: 因为file控件上传失败后会自动清空,所以使用文本框来保存上传路径,而且在不同的浏览器下,控件的样式也需要兼容。下面是自己用到的实例// 初始化判断浏览器的版本,根据版本的不同使用不同的样式function getExplorer() { //IE if (navigator.use... 阅读全文

posted @ 2014-10-29 10:53 hellofking 阅读(637) 评论(0) 推荐(0) 编辑

JS正则验证格式

摘要: function test() { var temp = document.getElementById("text1"); //对电子邮件的验证 var myreg = /^([a-zA-Z0-9]+[_|\_|\.]... 阅读全文

posted @ 2014-10-29 09:17 hellofking 阅读(194) 评论(0) 推荐(0) 编辑

2014年10月28日

WebBrowser.ExecWB方法

摘要: WebBrowser.ExecWB方法ie8下执行这个按钮会提示错误,不知道什么原因 阅读全文

posted @ 2014-10-28 14:17 hellofking 阅读(821) 评论(0) 推荐(0) 编辑

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

导航