摘要: http://bbs.blueidea.com/thread-3067461-1-1.html效果图如下://$(document).ready(function(){varmydata=[{id:"1",invdate:"2007-10-01",name:"test_test_test_test_test",note:"note",amount:"200.00",tax:"10.00",closed:true,ship_via:"TN",total:&q 阅读全文
posted @ 2013-01-16 23:13 Brook Legend 阅读(397) 评论(0) 推荐(0) 编辑
摘要: jquery load 事件用法如果绑定给window对象,则会在所有内容加载后触发,包括窗口,框架,对象和图像。如果绑定在元素上,则当元素的内容加载完毕后触发。注意:只有当在这个元素完全加载完之前绑定load的处理函数,才会在他加载完后触发。如果之后再绑定就永远不会触发了。所以不要在$(document).ready()里绑定load事件,因为jQuery会在所有DOM加载完成后再绑定load事件。调用load方法的完整格式是:load( url, [data], [callback] ),其中:url:是指要导入文件的地址。data:可选参数;因为Load不仅仅可以导入静态的html文件, 阅读全文
posted @ 2013-01-09 23:33 Brook Legend 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 1、struts.xml<action name="downLoad" class="org.wll.prj.action.HelloAction" method="exportFile"> </action>2、export.jsp<script type="text/javascript"> function daochu() {window.document.forms[0].submit(); } </script> <body> <form 阅读全文
posted @ 2012-12-30 15:37 Brook Legend 阅读(357) 评论(0) 推荐(0) 编辑
摘要: <%@ page pageEncoding="utf-8" %><%@ page language="java" contentType="text/html; charset=GBK" %><%@ page import="java.util.*" %><%@ page import="java.io.OutputStream" %><%@ page import="jxl.Workbook" %><%@ p 阅读全文
posted @ 2012-08-23 21:24 Brook Legend 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 排序代码function SortTable(sTableID, iCol, sDataType){ this.oTable=document.getElementById(sTableID); this.oTBody=this.oTable.tBodies[0]; this.colDataRows=this.oTBody.rows; this.aTRs=[]; this.iCol=iCol; this.sDataType=sDataType;}SortTable.prototype={ convert:function(sValue, sDataTy... 阅读全文
posted @ 2012-08-07 15:05 Brook Legend 阅读(525) 评论(0) 推荐(0) 编辑
摘要: sql中有聚集函数sum,但只能计算数值型,如(本文中试验都是在scott用户下):SQL> select deptno,sum(sal) asalfrom emp agroup by deptno;DEPTNO ASAL30 940020 1087510 8750有时要想分组查看每个部门的人员列表如下结果:DEPTNO ENAME-10 CLARK,KING,MILLER20 SMITH,FORD,ADAMS,SCOTT,JONES30 ALLEN,BLAKE,MARTIN,TURNER,JAMES,WARD标准sql没有提供这个方法。SQL> select deptno,sum 阅读全文
posted @ 2012-07-06 16:51 Brook Legend 阅读(693) 评论(0) 推荐(0) 编辑
摘要: /** * 删除检查单类型 * @param dct_type * @return */public static String deleteChecklistType(String [] dct_type){String str = "";for(int i= 0; i < dct_type.length; i++){if(i == dct_type.length -2){str += dct_type[i] + "','";}if(i == dct_type.length -1){str += dct_type[i];}}Str 阅读全文
posted @ 2012-06-30 15:32 Brook Legend 阅读(478) 评论(1) 推荐(0) 编辑
摘要: http://viralpatel.net/blogs/spring-3-mvc-create-hello-world-application-spring-3-mvc/ 阅读全文
posted @ 2012-06-27 16:07 Brook Legend 阅读(156) 评论(0) 推荐(0) 编辑
摘要: $("input[name='checkbox']:checkbox").each(function(){ if($(this).attr("checked")){ idStr += $(this).attr("id")+":"; nameStr += $(this).val()+"шшш"; } }) 阅读全文
posted @ 2012-06-27 13:10 Brook Legend 阅读(156) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/rayee 阅读全文
posted @ 2012-06-27 13:09 Brook Legend 阅读(117) 评论(0) 推荐(0) 编辑