09 2010 档案

用oracle的trunc函数处理日期类型数据
摘要:如果当日日期是:2007-9-19 那么有以下结果:select trunc(sysdate ,'dd') from dual ; --> 2007-9-19 select trunc(sysdate ,'yyyy') from dual ; -->2007-1-1select trunc(sysdate ,'mm') from dual ; -->2007-9-1计算两个日期相... 阅读全文

posted @ 2010-09-28 16:59 izumi 阅读(586) 评论(0) 推荐(0)

javascript弹出窗口居中
摘要:function selectCustomer(){var iTop = (window.screen.availHeight-30-500)/2;var iLeft = (window.screen.availWidth-10-750)/2; window.open("../customer/creditApprManage.do?method=toGetCustomer", "searchCo... 阅读全文

posted @ 2010-09-21 10:44 izumi 阅读(424) 评论(0) 推荐(0)

javascript四舍五入保留两位小数
摘要:function count(){//alert("count");var size=~~(document.getElementById("size").value);var value=0;for(var i=0;i<size;i++){var val=1*(document.getElementById("afterAdjScor"+i).value);if(null!=val){va... 阅读全文

posted @ 2010-09-21 09:01 izumi 阅读(1168) 评论(0) 推荐(0)

文本框失去焦点事件、获得焦点事件
摘要:onBlur:当失去输入焦点后产生该事件onFocus:当输入获得焦点后,产生该文件Onchange:当文字值改变时,产生该事件Onselect:当文字加亮后,产生该文件onpropertychange 当属性改变发生该事件 无论粘贴 keyup onchange等,最为敏感 阅读全文

posted @ 2010-09-21 08:58 izumi 阅读(92830) 评论(1) 推荐(1)

struts1.2中将ActionForm放在HttpSession中的实践
摘要:<action path="/customer/customerInfoManage" parameter="method"scope="session" name="cusCustomerInfoForm"type="com.byttersoft.customer.action.CusCustomerInfoAction"validate="false"><forward na... 阅读全文

posted @ 2010-09-20 09:56 izumi 阅读(1754) 评论(0) 推荐(0)

浏览器兼容的JS写法总结
摘要:-、元素查找问题1. document.all[name] (1)现有问题:Firefox不支持document.all[name] (2)解决方法:使用getElementsByName(name),getElementById(id)等来替代。2. 集合类对象问题 (1)现有问题:IE中对许多集合类对象取用时可以用 (),但在Firefox只能用[]。 如:IE中可以使用document.fo... 阅读全文

posted @ 2010-09-20 08:32 izumi 阅读(3319) 评论(0) 推荐(2)

struts1.2中从一个action跳转到另外一个action
摘要:在action的方法的最后,一般情况下都使用return mapping.findForward("xxxxx");如果想跳转到另外一个action的某个页面,可以这样:ActionForward actionForward = new ActionForward();actionForward.setPath("/customer/creditApprManage.do?method=searc... 阅读全文

posted @ 2010-09-15 15:15 izumi 阅读(6724) 评论(0) 推荐(0)

在64位win7下安装了32位的Oracle10g以后,plsql连接出错的解决方法
摘要:在64位win7下安装了32位的Oracle10g以后,plsql连接出错,提示一个空的对话框。解决办法:解决pl/sql连接问题: 1.到oracle官网下载Oracle InstantClient,我下的是instantclient-basiclite-win32-10.2.0.4.zip,把它解压缩到oracle安装目录product下,其中还有一个目录为10.2.0.在其中的db_1/NE... 阅读全文

posted @ 2010-09-11 03:42 izumi 阅读(8923) 评论(1) 推荐(0)

MappingDispatchAction与DispatchAction用法上的一点区别
摘要:1.在jsp页面上前者如下:<li><a href="./deptAction.do">dept</a></li><li><a href="./deptAction.do">dept2</a></li>后者如下:<li><a href="./deptAction.do?method=d... 阅读全文

posted @ 2010-09-09 15:33 izumi 阅读(625) 评论(0) 推荐(0)

Oracle备份数据库
摘要:说明:exp.exe是导出数据库备份文件的执行程序,imp.exe是导入的执行程序。 步骤: 1、源数据库端执行: exp user/pwd@orcl file=d:\orcl.dmp log=d:\orcl.log说明:在windows下cmd中执行.orcl指SID,orcl.dmp是导出后的文件,orcl.log是log文件。2、目标数据库端执行:先建用户:c:\>sqlplus "/... 阅读全文

posted @ 2010-09-08 10:34 izumi 阅读(263) 评论(0) 推荐(0)

JS比较两个数值的大小
摘要:一般情况下:if(2>10){alert("不正确!");}此比较不会是想要的结果:它相当于2>1,把10的第一位取出来比较。解决方法:if(eval(2)>eval(10)){alert("不正确!");}eval()函数用于在不引用任何特定对象的情况下计算代码字符串。 阅读全文

posted @ 2010-09-06 11:19 izumi 阅读(5401) 评论(0) 推荐(0)

导航