报错:对象不支持“trim”属性或方法

这个原因是因为IE7、8、9不支持js的trim()方法,解决办法就是使用jquery的 .trim()使jquery .trim( 你要替换的字符 );

你可能感兴趣的:(Javaweb)