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