摘要:
var strHost=location.href;var ss= strHost.substring(strHost.indexOf("=")+1,strHost.length); 阅读全文
摘要:
对于代码中要注意的问题,已经添加了注释。ASPX 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><%@ Page Language="C#"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional 阅读全文
摘要:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ><head><meta http-equiv="Content-Type" content="text/html; charset=utf 阅读全文
摘要:
去掉字符串两端空格function trim(str){ return str.replace(/^\s+|\s+$/g,"");}去掉字符串中的所有空格function trim(str){ return str.replace(/[ ]/g,""); } 阅读全文
摘要:
function CheckDate("obj=2012年01月11日"||"obj=2012-01-11"||"obj=20120111") { var date = obj; var year,month,day,datePat,matchArray; if(/^(\d{4})(-|\/)(\d{1,2})\2(\d{1,2})$/.test(date)){ datePat = /^(\d{4})(-|\/)(\d{1,2})\2(\d{1,2})$/; year=date.substring(0,4); month=date.s 阅读全文