js trim()方法在IE下无法使用的问题
String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"");}
?
?OK!!!!
发布时间: 2013-11-11 14:02:17 作者: rapoo
js trim()方法在IE下无法使用的问题
String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"");}
?
?OK!!!!