String.prototype.trim = function() {

return this.replace(/^\s+|\s+$/g,"");

}

String.prototype.ltrim = function() {

return this.replace(/^\s+/,"");

}

String.prototype.rtrim = function() {

return this.replace(/\s+$/,"");

}

2009/04/21 10:57 2009/04/21 10:57

Trackback Address :: https://youngsam.net/trackback/339