摘要:如果当日日期是: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计算两个日期相...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要:onBlur:当失去输入焦点后产生该事件onFocus:当输入获得焦点后,产生该文件Onchange:当文字值改变时,产生该事件Onselect:当文字加亮后,产生该文件onpropertychange 当属性改变发生该事件 无论粘贴 keyup onchange等,最为敏感
阅读全文
摘要:<action path="/customer/customerInfoManage" parameter="method"scope="session" name="cusCustomerInfoForm"type="com.byttersoft.customer.action.CusCustomerInfoAction"validate="false"><forward na...
阅读全文
摘要:-、元素查找问题1. document.all[name] (1)现有问题:Firefox不支持document.all[name] (2)解决方法:使用getElementsByName(name),getElementById(id)等来替代。2. 集合类对象问题 (1)现有问题:IE中对许多集合类对象取用时可以用 (),但在Firefox只能用[]。 如:IE中可以使用document.fo...
阅读全文
摘要:在action的方法的最后,一般情况下都使用return mapping.findForward("xxxxx");如果想跳转到另外一个action的某个页面,可以这样:ActionForward actionForward = new ActionForward();actionForward.setPath("/customer/creditApprManage.do?method=searc...
阅读全文
摘要:在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...
阅读全文
摘要: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...
阅读全文
摘要:说明: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 "/...
阅读全文
摘要:一般情况下:if(2>10){alert("不正确!");}此比较不会是想要的结果:它相当于2>1,把10的第一位取出来比较。解决方法:if(eval(2)>eval(10)){alert("不正确!");}eval()函数用于在不引用任何特定对象的情况下计算代码字符串。
阅读全文