摘要: 字符串函数扩充 //******************************************//去除左边的空格String.prototype.LTrim = function(){ return this.replace(/(^\s*)/g, "");}//******************************************// 去除右边的空格String.prototype.Rtrim = function(){ return this.replace(/(\s*$)/g, "");}//***************** 阅读全文