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

ie 上对于 js 去掉字串的空格,无效

2013-02-06 
ie 下对于 js 去掉字串的空格,无效 String.prototype.LTrim function(){return this.replace(/(^\s*)/g,

ie 下对于 js 去掉字串的空格,无效
 String.prototype.LTrim = function(){  
                return this.replace(/(^\s*)/g, "");  
            }  
this.LTrim();   不可能吧 把你的代码贴出来

热点排行
Bad Request.