js trim()方法在IE下无法使用的问题String.prototype.trimfunction(){return this.replace(/(^\s*)|(\s*$
js trim()方法在IE下无法使用的问题
String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"");}
?
?OK!!!!
js trim()方法在IE下无法使用的问题
String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"");}
?
?OK!!!!