4Fang财务软件、四方在线软件、SaaS

简单实用的就是最好的!
帮助中心 | 登录 | 注册 | 关于 |

 
  通用函数及扩展

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)