1
为什么IE和Firefox的匹配结果不一样?IE和Firefox的正则表达式问题
var str = 'a,b,c , d, e ,f';
var matches = str.split(/(\s+)?,(\s+)?/);
alert(matches);
IE:
a,b,c,d,e,f
firefox:
a,,,b,,,c, , ,d,, ,e, ,,f
如何匹配像IE结果? 请回答我:(
IE8和Firefox浏览器v3.6.8
什么版本的IE和FireFox? – 2010-08-21 03:02:22