<javascript>

String.prototype.trim = function()

{

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

}

</javascript>

相关文章: