//出处:网上搜集 //made by yaosansi 2005-12-02 //For more visit http://www. // Trim() , Ltrim() , RTrim() , Len() String.prototype.Len=function() { return this.replace([^x00-xff]/g,"aa").length; } String.prototype.Trim = function() { return this.replace(/(^\s*)|(\s*$)/g, ""); } String.prototype.LTrim = function() String.prototype.RTrim = function() |
|
来自: 昵称8331 > 《Javascript》