自己动手为JavaScript中的string添加Trim属性
String.prototype.Trim = function(){return this.replace(/(^\s*)|(\s*$)/g,"");}
String.prototype.LTrim = function(){return this.replace(/(^\s*)/g, "");}
String.prototype.Rtrim = function(){return this.replace(/(\s*$)/g, "");}
浙公网安备 33010602011771号