首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

走走_js 去空格

2012-11-23 
转转_js 去空格JavaScript 去除空格SCRIPT LANGUAGEJavaScript!--//出处:网上搜集//made by yaosans

转转_js 去空格

 JavaScript 去除空格<SCRIPT LANGUAGE="JavaScript"><!--//出处:网上搜集//made by yaosansi 2005-12-02//For more visit http://www.yaosansi.com// Trim() , Ltrim() , RTrim() 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, ""); }  //--></SCRIPT>

热点排行
Bad Request.