Return to Snippet

Revision: 650
at July 25, 2006 00:48 by 2ndboy


Initial Code
String.prototype.trim = function()
{
    return this.replace( /(^\s*)|(\s*$)/g, "" );
}

Initial URL

                                

Initial Description

                                

Initial Title
去除字符串首尾的空格

Initial Tags
javascript

Initial Language
JavaScript