function Trim() {
return this.replace(/\s+$|^\s+/g,'';);
}
String.prototype.Trim = Trim;
var str=' a ';
alert('['+str.Trim()+']');//[a] 可TM愁死我了
return this.replace(/\s+$|^\s+/g,'';);
}
String.prototype.Trim = Trim;
var str=' a ';
alert('['+str.Trim()+']');//[a] 可TM愁死我了