String.prototype.Trim   =   function()  
          {  
          return   this.replace(/(^\s*)|(\s*$)/g,   "");  
          }
posted on 2009-05-22 09:44  李辉明  阅读(203)  评论(1编辑  收藏  举报