`
gllwhq
  • 浏览: 14734 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
if (child.className == "pinglundiv" && click.className == "pl") { child.style.display = "table-cell"; var t = child.getElementsByTagName("form"); var mywordVlue = t[0]["myword1"].value; t[0]["myword1"].parentNode.parentNode.style ...
系统登录页面是login.jsp,登录成功后转到main.jsp页面,这个页面是个上下框架结构,上方框架页面是top.jsp,在top.jsp中点退出时执行一个session的清理,然后返回到登录页面,但是现在只能是上方框架返回到login.jsp,要怎么样才能让整个页面都返回呢? struts-config.xml中的配置如下: <action input="/login.jsp" name="loginForm" path="/login" scope="request" type="sys ...
type=button //就单纯是按钮功能 type=submit //是发送表单 但是对于从事WEB UI的人应该要注意到,使用submit来提高页面易用性: 使用submit后,页面支持键盘enter键操作,而很多WEB软件设计师,可能没有注意到submit统 一。 用button后往往页面不支持enter键了。所以需要支持enter键,必须要设置个submit,默认enter键对页面第一个submit进行操作。 <input type="submit" name="b1" value="提交&quo ...
JS源码 本地跳转 function add(){ window.location.href="add.do?method=add"; //你需要跳转的地址 } 打开新页面 function add(){ window.location("add.do?method=add"); //你需要跳转的地址 } JSP页面调用 <input name="" type="button" value="增 加" onClic ...
DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); // 取当前时间 Date now = new Date(); Calendar cal = Calendar.getInstance(); DateFormat d2 = DateFormat.getDateTimeInstance(); String str2 = d2.format(now); //String 转 Date类型 Date times=df.parse(str2)
package com.util; import net.sourceforge.pinyin4j.PinyinHelper; import net.sourceforge.pinyin4j.format.HanyuPinyinCaseType; import net.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat; import net.sourceforge.pinyin4j.format.HanyuPinyinToneType; import net.sourceforge.pinyin4j.format.HanyuPi ...
package com.util; import java.text.SimpleDateFormat; import java.util.Date; import net.sf.json.JsonConfig; import net.sf.json.processors.JsonValueProcessor; public class JsonDateValueProcessor implements JsonValueProcessor { private String format = "yyyy-MM-dd HH:mm:ss"; // ...
package com.util; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.util.zip.GZIPInputStream; import java.util.zip.GZIPOutputStream; // 将一个字符串按照zip方式压缩和解压缩 public class ZipUtil { // 压缩 public static String compress( ...
Global site tag (gtag.js) - Google Analytics