摘要: 浏览器代码名称:navigator.appCodeName 浏览器名称:navigator.appName 浏览器版本号:navigator.appVersion 是否支持Java:navigator.javaEnabled() MIME类型数:navigator.mimeTypes.length 阅读全文
posted @ 2012-03-28 10:35 Cat.1988 阅读(116) 评论(0) 推荐(0) 编辑
摘要: package hh.com.fileupload.servlet; import java.io.FileNotFoundException; import java.io.IOException; import java.io.File; public class ReadFile { public ReadFile() { } /** * 删除某个文件夹下的所有文件夹和文件 ... 阅读全文
posted @ 2012-03-08 16:38 Cat.1988 阅读(520) 评论(0) 推荐(0) 编辑
摘要: 大家都知道session是web中在服务器端保存用户状态的一种方式,但归根结底,http协议本身属于无状态协议,session到底是怎么搞出来的呢,其实服务端维护session用到了两中方式: 1.cookie保存sessionid,在浏览器支持cookie的情况下,服务端一般首选这种方式,在用户请 阅读全文
posted @ 2012-02-27 17:43 Cat.1988 阅读(91) 评论(0) 推荐(0) 编辑
摘要: -arch [processor architecture] 描述:指定所使用的处理器的类别 举例:eclipse -arch x86或eclipse -arch sparc -application [id] 描述:指定要运行的应用,id为扩展org.eclipse.core.applicatio 阅读全文
posted @ 2012-02-21 10:05 Cat.1988 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 1、若想要将正则表达式视为一个对象来重复使用,就可以使用Pattern的静态方法compile()进行编译。compile()方法会返回一个Pattern实例。这个实例代表正则表达式,以后就可以重复使用这个Pattern实例的matcher()方法来返回一个Matcher实例,该实例代表符合正则式的 阅读全文
posted @ 2012-01-07 21:16 Cat.1988 阅读(472) 评论(0) 推荐(0) 编辑
摘要: 注意大小写一定不能弄错. 属性: 1 Attributes 存储节点的属性列表(只读) 2 childNodes 存储节点的子节点列表(只读) 3 dataType 返回此节点的数据类型 4 Definition 以DTD或XML模式给出的节点的定义(只读) 5 Doctype 指定文档类型节点(只 阅读全文
posted @ 2011-12-30 09:52 Cat.1988 阅读(133) 评论(0) 推荐(0) 编辑
摘要: //全局文本替换 String.prototype.replaceAll = function(s1,s2){ return this.replace(new RegExp(s1,"gm"),s2); } //去前后空格 String.prototype.Trim = function(){ return this.replace(/(^\s*)|(\s*$)/g, ""); } //去... 阅读全文
posted @ 2011-12-27 16:03 Cat.1988 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 1、引入md5.JS 2、md5.JS 内容如下 3、加密 阅读全文
posted @ 2011-12-27 15:43 Cat.1988 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 1、直接给对象添加事件 2、通过监听方式添加事件,多事件可并存,按添加顺序执行。 javascript事件解说 一般事件 onclick IE3、N2 鼠标点击时触发此事件 ondblclick IE4、N4 鼠标双击时触发此事件 onmousedown IE4、N4 按下鼠标时触发此事件 onmo 阅读全文
posted @ 2011-12-27 12:14 Cat.1988 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 1 function Select(){}; 2 /** 3 * 根据指定的JSON对象来生成指定的select的options项(清除原来的options). 4 */ 5 Select.create = function(/*string*/selectId,/*json object*/json) { 6 Select.clear(selectId); ... 阅读全文
posted @ 2011-12-27 12:12 Cat.1988 阅读(301) 评论(0) 推荐(0) 编辑