javascript中字符串对象的trim方法ff,googlechrome支持,在ie中是不支持的,如果你用到了,你ff,googlechrome中你的程序是没有问题的,但是在ie中就不支持了。
解决办法:人工的给javascript中字符串对象添加方法trim
<script language="javascript">
String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"");}
var test1 = " aa ";
test1 = test1.toString();
test1 = test1.trim();
</script>