摘要:
//去除中间空格 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
老茶壶
阅读(151)
评论(0)
推荐(0)
浙公网安备 33010602011771号