|
|
通用函数及扩展 jangogo @ 2009-6-22 15:43:00 //取Const对象item时忽略大小写 Const.getItemIgnoreCase (sItemName) //字符串去掉前后空格 String.prototype.trim() //求字符串的真实长度,中文为2字符,英文为1个字符 String.prototype.getLength() //字符串replaceAll String.prototype.replaceAll(sFind,sReplace) //字符串的URLEncode String.prototype.UrlEncode() //著名的$()函数 $(sIDorName) |