摘要: //左空格 String.prototype.leftSpace = function(){ return this.replace(/^\s+/g,"") } //右空格 String.prototype.rightSpace = function(){ return... 阅读全文