- 博客(16)
- 资源 (151)
- 收藏
- 关注
原创 status框架下获得上传的本地路径
/** * 取得客户端上传地址 * * @param fromFile 上传控件的对象 * @return boolean 检查结果 * @Exception 发生异常 */ public static String FilePath(FormFile fromFile) throws Exception{
2008-10-29 19:01:00
959
转载 setTimeout中调用函数有参数该怎么传递
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">window.onload=function(){ var obj=document.getElementById("test"); fold_off(obj);}function fold_off(o){ v
2008-10-27 21:19:00
1774
原创 javascirpt实现2个frame传值
index.htm iframe1.htm 1 function aa(){ parent.frames["bb"].document.all["TextBox3"].value = docum
2008-10-27 21:16:00
2451
原创 JAVA判断变量是否空值
//去左空格; function ltrim(s){ return s.replace( /^(/s*| *)/, ""); } //去右空格; function rtrim(s){ return s.replace( /(/s*| *)$/, ""); } //去左右空格; function trim(s){ return ltrim(rtrim(s));} /** * 判断变量是否空值
2008-10-25 22:44:00
6679
原创 javascript最掉左右空格
//去左空格; function ltrim(s){ return s.replace( /^(/s*| *)/, ""); } //去右空格; function rtrim(s){ return s.replace( /(/s*| *)$/, ""); } //去左右空格; function trim(s){ return ltrim(rtrim(s));}
2008-10-25 22:39:00
822
原创 javascript取得n天之后日期
function GetMyDate(dDate,Days){ dDate.setDate(dDate.getDate() + Days); return dDate;}Date.prototype.format = function(format){var o = {"M+" : this.getMonth()+1,"d+" : this.getDate(),"h
2008-10-23 19:47:00
1150
转载 java计算2个时间相差多少年,多少个月,多少天
import java.util.Calendar; public class Y { public static void main(String[] args) { int ret[] = getDateLength( "20050531 ", "20070101 "); System.out.prin
2008-10-23 19:45:00
12974
1
原创 JAVA日期合法性检查
/** * 日期检查 * * @param pInput 要检查的字符串 * @return boolean 检查结果 */ public static boolean isDate (String pInput) { if(pInput == null){
2008-10-22 20:46:00
3718
原创 JAVA检查Email合法性
/** * Email检查 * * @param pInput 要检查的字符串 * @return boolean 检查结果 */ public static boolean isEmail (String pInput) { if(pInput == null){
2008-10-22 20:45:00
2634
原创 java判断文字长度检查
/** * 文字长度检查 * * @param pInput 要检查的字符串 * @param pLength 列数 * @return boolean 返回检查结果 */ public static boolean isBeyondLength (String pInput,
2008-10-22 20:44:00
1750
原创 java检查URL合法性
/** * URL检查 * * @param pInput 要检查的字符串 * @return boolean 返回检查结果 */ public static boolean isUrl (String pInput) { if(pInput == null){
2008-10-22 20:44:00
7874
原创 java空值检查
/** * 空值检查 * * @param pInput 要检查的字符串 * @return boolean 返回检查结果 */ public static boolean isNull (Object pInput) { if(pInput == null){ retu
2008-10-22 20:42:00
1148
原创 特殊字符的正则表达式
/** * 特殊字符检查 * * @param pInput 被检查字符串 * @return result 检查后的结果 */ public static boolean isSpecialChar(String pInput){ if(pInput == null){
2008-10-22 20:39:00
896
原创 判断上传前,判断本机文件(上传的文件)是否存在
/** * 判断文件是否存在 * * @param pInput 上传的客户端的文件地址 * @return result 检查后的结果 */ public static boolean isFileExist(String pInput){ if (pInput == null) {
2008-10-22 20:37:00
1213
转载 停止事件冒泡和阻止浏览器默认行为的脚本
在前端开发工作中,由于浏览器兼容性等问题,我们会经常用到“停止事件冒泡”和“阻止浏览器默认行为”。1..停止事件冒泡 JavaScript代码//如果提供了事件对象,则这是一个非IE浏览器 if ( e && e.stopPropagation ) //因此它支持W3C的stopPropagation()方法 e.stopPropag
2008-10-22 14:03:00
905
转载 给文字加下划线
style="cursor:hand; text-decoration:underline" style="text-decoration:underline" //文字加下划线style="cursor:hand"//当鼠标放文字上面时变成手的形状
2008-10-13 11:29:00
6482
Spring3.0+Hibernate4.0+SpringMVC整合Ext
2012-10-18
SyntaxHighlighter_1.5.0
2013-02-04
Apache Main介绍
2013-11-04
nagios-plugins
2014-11-20
jquery.clipboard.min.js(含demo)
2013-07-30
nagios-4.0.6
2014-11-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人