摘要:
// 不提示窗口关闭对话框parent.window.opener = null;parent.window.open("", "_self");parent.window.close();parent.window.location.href = "";window.close();地址:http://my.oschina.net/midnight/blog/14695 阅读全文
摘要:
出现原因:如下给一个对象添加事件,结果运行时这个事件是可以执行,不过会报脚本错误“尚未实现”document.getElementById("clearNumberListBtn").onclick=clearNumbers();解决方法如下:document.getElementById("clearNumberListBtn").onclick=function (){clearNumbers(); }; 阅读全文
摘要:
row.cells[5].innerHTML = "<span style='display:none'>none</span><script defer='defer'>alert('OK!');<\/script>";注:(1)script只会在第一遍加载的时候被执行,需要加上defer属性(只有IE可以)。(2)IE会忽略开头是脚步的问题,所以要加上一行空代码。(3)defer属性会让脚本在全部加载完成后执行,所以脚本中不能有document.write,不然会写掉整个页面 阅读全文
摘要:
用SQL语句直接写,会报错,ORA-01704:文字字符串过长方法:用存储过程写public int insertSubPopedom(CommonVO param , DBConnection dbConnection)throws EXPSQLException { Connection con = dbConnection.getConnection(); PreparedStatement ps = null; try{ com.exp.dao.dialect.Dialect dialect = dbConnecti... 阅读全文
摘要:
由于select没有readOnly属性,设置其只读如下//支付方式限制修改 var select = document.all.pay_type1; select.onclick= function (){ var index = this.selectedIndex; this.onchange = function(){ this.selectedIndex = index; }; };只是一种伪只读 阅读全文
摘要:
网上搜了各种解决方案,下面这种最终是有用的Eclipse启动时发生An internal error occurred during: "Initializing Java Tooling".错误的解决方法删除当前工作目录下的WORKSPACE_HOME/.metadata/.plugins/org.eclipse.core.resources/.project,然后重新启动Eclipse 阅读全文
摘要:
前几天,在用友华表控件上做了一个追踪事件,记录如下1写一个excel表function winLoad(){DCellWeb1.SetRows(<%=item_count+4%>, 0);//设置列数DCellWeb1.SetCols(<%=dept_count*cell+7%>, 0);//设置行数//...} 2添加双击方法<script language="javascript" for="DCellWeb1" event="MouseDClick(col, row)">if( col< 阅读全文
摘要:
function doddkm(){ var ran = Math.random(); var loan_id = document.all.LOAN_ID.value; var arr = window.showModalDialog("..src"); if ( arr != null && arr.length > 0){ document.all.LOAN_ID.value = arr[0]; }}在子窗口操作,返回一个array,写出这样也可以function doddkm(){ var ran = Math.random(); ... 阅读全文
摘要:
1.windows->preferences->Tomcat->JVM Settings里面的 Append to JVM Parameters 设置参数 如:-Xms512m -Xmx1024m2.eclipse文件夹下,eclipse.ini中配置,如:-vmargs-Duser.timezone=Asia/Shanghai-Dosgi.requiredJavaVersion=1.5-Xms256m-Xmx512m3.发布在tomcat上的参数配置,双击server里的项目,如这里可以配置运行时,tomcat的参数。 阅读全文
摘要:
初学PHP,还是有很多不懂的地方。今天看W3C教程,有用到date("D"),不明其意。上网找有关资料,现记录如下。<html><body> <?php echo date('Y-m-j').'<br />'; echo date('y-n-j').'<br />'; echo date('Y-M-j').'<br />'; echo date('Y-F-jS').'<br /> 阅读全文