摘要: 1 SCRIPT LANGUAGE="JavaScript"> 2 <!-- 3 //出处:网上搜集 4 // Trim() , Ltrim() , RTrim() 5 String.prototype.Trim = function() 6 { 7 return this.replace(/(^\s*)|(\s*$)/g, ""); 8 } 9 String.prototype.LTrim = function() 10 { 11 return this.replace(/(^\s*)/g, ""); 12 } ... 阅读全文
posted @ 2012-08-17 14:51 Kop-Elan 阅读(244) 评论(0) 推荐(0) 编辑