`
shelllgd
  • 浏览: 29990 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
/** * 去除字符串中的空格,回车,换行,制表符 * @param before 字符串的值 * @return 处理后的字符串 */ public static String replaceBlank(String before){ Pattern p = Pattern.compile("\\s*|\t|\r|\n"); Matcher m = p.matcher(before); String after = m.replaceAll("" ...
public class DateFormate { /** * 日期格式化函数 将日期类型转化为字符串类型 * @param date 日期 * @return 字符串形式如: "yyyy-MM-dd" */ public String getString(Date date){ SimpleDateFormat sdft = new SimpleDateFormat("yyyy-MM-dd"); String str = sdft.format(date); return str; } ...
function CLASS_MSN_MESSAGE(id,width,height,caption,title,message,target,action){ this.id = id; this.title = title; this.caption= caption; this.message= message; this.target = target; this.action = action; this.width = width?width:200; ...
<html:file property="file1" name="htfjList" styleId="file1" indexed="true" style="width:95%" onkeydown="event.returnValue=false;"></html:file> import org.apache.struts.upload.FormFile; // 文件 private Form ...

[置顶] table添加行

    博客分类:
  • web
<tbody id="Table"> <logic:iterate name="ActionForm" property="List" id="List" indexId="index1"> <% int i = index1.intValue(); String id = "id_" + i + "_"; Strin ...
import java.io.IOException; import java.io.OutputStream; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.Iterator; import javax.servlet.http.HttpServletResponse; import jxl.Workbook; import jxl.format.Border; import jxl.format.BorderLine ...
private List comparePO(Object object,Object object1) throws DataAccessException{ Method[] methods = object.getClass().getMethods(); Method[] methods1 = object1.getClass().getMethods(); List<String> diffStrList = new ArrayList<String>(); int j=0; for(int i=0;i<methods.len ...
document.getElementById("khmc").value =""; document.getElementById("khmc1").value =""; var url='<%=request.getContextPath()%>/khgl/khinforAction.do?operFlag=select'; var sStyle = 'scrollbar:no;dialogWidth:1024px;dialogHeight:600px;status:no; ...
<script language="javascript"> var st1 = new SortableTable(document.getElementById("dataTable"),'onMouseOnTr',["String","Number","Number","Number","Number","String","Date",""]); </scri ...
$.ajax({ type: "POST", url: "jkhtAjaxAction.do?operFlag=query", data:"dypmc=" +dypmc, dataType:"josn", success: function(json){ // eval转换成对象 var json_obj=eval( "("+json+")"); var value = json_obj[0].mj; ...
function GetXmlHttpObject() { var xmlHttp=null; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) ...
原型对象 原型(prototype),是JavaScript特有的一个概念,通过使用原型,JavaScript可以建立其传统OO语言中的继承,从而体现对象的层次关系。JavaScript本身是基于原型的,每个对象都有一个prototype的属性来,这个prototype本身也是一个对象,因此它本身也可以有自己的原型,这样就构成了一个链结构。 访问一个属性的时候,解析器需要从下向上的遍历这个链结构,直到遇到该属性,则返回属性对应的值,或者遇到原型为null的对象(JavaScript的基对象Object的prototype属性即为null),如果此对象仍没有该属性,则返回undefined. ...
1.oracle中文概念手册 连接 (connection)与会话 (session)这两个概念均与用户进程 (user process)紧密相关,但二者又具有不同的含义。 连接 :用户进程和 Oracle 实例间的通信通道(communication pathway)。这个通信通道是通过 ...
$(function (){ var id="appendText" var i=0; var numtd= $("#Jquery td div"); numtd.dblclick(function(){ var tdthis=$(this); var text = tdthis.html(); tdthis.html(""); var input = $("<input type='text' id="+id+i+"/>") ...
浏览器中ul和li元素默认情况下文字前都有圆点标识符,li元素会有缩进。Opera浏览器比较特殊,li的标识符和其他浏览器不同。 list-style属性值为none时,可以清除ul和li前面的小圆点 清除子菜单的缩进值,需要padding和margin都为0, ...
Global site tag (gtag.js) - Google Analytics