- 浏览: 26728 次
- 性别:
- 来自: 西安
-
最新评论
文章列表
w3school: http://www.w3school.com.cn/
中国IT实验室: http://www.chinaitlab.com/
博客园: http://www.cnblogs.com/
google CODE: http://code.google.com/intl/zh-CN/
InfoQ: http://www.infoq.com/cn/
SVN中国社区: http://www.iusesvn.com/
得益网: http://www.netyi.net/
java开源大全: http://www.open-open.com/
UML CHINA: http:// ...
//删除左右两端的空格
ps.string.trim=function(str)
{
return str.replace(/(^\s*)|(\s*$)/g, "");
};
//删除左边的空格
ps.string.ltrim=function(str)
{
return str.replace(/(^\s*)/g,"");
};
//删除右边的空格
ps.string.rtrim=function(str)
{
return str.replace(/(\s*$)/g,"");
};
//利用 ...