JS常用函数
String.prototype.Trim = function()
{
return this.replace(/(^\s*)|(\s*$)/g, " ");
} 
String.prototype.LTrim = function()
{
return this.replace(/(^\s*)/g, " ");
} 
String.prototype.RTrim = function()
{
return this.replace(/(\s*$)/g, " ");
}posted on 2008-07-04 14:10 RedFox(低调) 阅读(302) 评论(0) 收藏 举报


浙公网安备 33010602011771号