标签:asc replace div function bsp script prototype his 正则
1 String.prototype.Trim = function() 2 { 3 return this.replace(/(^\s*)|(\s*$)/g, ""); 4 } 5 String.prototype.LTrim = function() 6 { 7 return this.replace(/(^\s*)/g, ""); 8 } 9 String.prototype.RTrim = function() 10 { 11 return this.replace(/(\s*$)/g, ""); 12 }
标签:asc replace div function bsp script prototype his 正则
原文地址:https://www.cnblogs.com/codejoker/p/10498113.html