`
shirlly
  • 浏览: 1624421 次
  • 性别: Icon_minigender_2
  • 来自: 福州
社区版块
存档分类
最新评论
文章列表
html代码 <input id="webchat_usersend" type="text" height="20" size="65" maxlength="255" value="请在此输入您要说的话" onKeyDown="webchat_chkkeysend(event);" /> <input type="button" value="发送" onClick="webchat ...

HQL实践总结

/** * 依据HQL语句和参数数组做HQL查询 * @param queryString hql查询语句 * @param parameters 查询参数数组(null表是无参数) * @return */ protected List findByHqlQuery(final String queryString, final Object[] parameters) { if(null==parameters){ return getHibernateTemplate().find(queryString); }else{ ...

数值格式化

<script> //####################### // 数字格式化函数 // 用法:本函数用来格式化数字。 // 参数:num(数值型):要进行格式化的数值型变量; // decimalNum(整型) :要保留的小数位数; // bolLeadingZero (布尔型:true或 false):对-1<num<1之间的数是否要添加前导数字0; // bolParens (布尔型:true或 false):在负号后是否使用小括号; // ...
1)加入js function SetFont(num){    var divs = document.getElementsByTagName("div");    for (var i = 0; i < divs.length; i++)      if(divs[i].className=="post-body")divs[i]['style']['fontSize']=num; } 注意 要改变的字体不是在div层中,而且该js控制的div的class="post-body"的层中包含的字体的大小 2)加入调用函数 字 ...
1)在body中加入这个object <OBJECT  id=WebBrowser  classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2  height=0  width=0 VIEWASTEXT> </OBJECT> 2)在head头部加入 <!--media=print 这个属性可以在打印时有效--> <style media=print> .Noprint{display:none;} .PageNext{page-break-after: always;} </style> 说 ...
<html> <head> <title>调试</title> <script language=javascript> function HideObj(Obj) { Obj.style.display = "none"; } function ShowObj(Obj) { Obj.style.display = ""; } </script> </head> & ...
<img src="<%=rscontent("filepath")%>" onload="if(this.clientWidth>650) this.width=650; this.height=(this.clientHeight*this.width)/this.clientWidth; "> <!--注意取得客户端的图片的宽:this.clientWidth取得其高:this.clientWidth注意JS是区分大小写的!控制客户端的宽用this.width控制客户端的高用:this.hei ...
<html> <body> <a target=_self href="javascript:goUrl()"> <script language="javascript"> var focus_width=240; var focus_height=158; var text_height=18; var swf_height = focus_height+text_height; var pics='images/left_menu_bg.jpg|images/left_men ...
[color=red][/color]在body中插入如下代码 <div id="layer1" style="overflow-y:hidden;width:50;">     <div id="layer2"> <table width="130" height="70" border="0" align="center" cellpadding="0" cellspacing="0" ...
一、"#"的用法    1、 访问OGNL上下文和Action上下文,#相当于ActionContext.getContext();下表有几个ActionContext中有用的属性:          parameters  包含当前HTTP请求参数的Map #parameters.id[0]作用相当于request.getParameter("id")        request 包含当前HttpServletRequest的属性(attribute)的Map #request.userName相当于request.getAttribute(&q ...
    乱码多数是由于编码与解码所使用的方式不同造成的,所以我建议大家将编码方式都设为“utf-8”,如<%@  page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>。另外,在配置web.xml时使用ActionContextCleanUp过滤器(Filter),如下面代码所示: <?xml version="1.0" encoding="UTF-8"?> & ...
JSP页面代码 <s:form action="" method="post" name="importForm" enctype="multipart/form-data"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="info-table&quo ...
1:在action中定义的变量,在jsp页面中显示用:<s:property value="变量名" /> 2:在页面中实现自动增加的序号用iterator的statuts的index属性 eg: <s:iterator value="#request.inOutAccountList" id="data" status="listStat"> <s:property value="#listStat.index+1"/> </s:iterato ...
Global site tag (gtag.js) - Google Analytics