Posted
Filed under Htm&Javascript
function trim(str) {
 return str.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
}
String.prototype.trim = function() {
    return this.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
}
2010/11/08 02:51 2010/11/08 02:51