2012年12月23日
摘要: //去除中间空格 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, ""); }使用:if(name.LT 阅读全文
posted @ 2012-12-23 11:33 老茶壶 阅读(143) 评论(0) 推荐(0) 编辑