String.prototype.Trim = function()
{
   return this.replace(/(^\s*)|(\s*$)/g, “”);
}
posted on 2009-06-14 12:22  men-chong  阅读(119)  评论(0编辑  收藏  举报