var filename = "ASDFK*SADF+ALDLAS-LDKFADFa*seAc tion.java";
var arr = filename.split(/\*|\-|\+|\s/);
alert(arr);
IE6下这个没问题,FF下,如果空格多的……
转载于:https://www.cnblogs.com/zhaoyang-1989/p/3284674.html
var filename = "ASDFK*SADF+ALDLAS-LDKFADFa*seAc tion.java";
var arr = filename.split(/\*|\-|\+|\s/);
alert(arr);
IE6下这个没问题,FF下,如果空格多的……
转载于:https://www.cnblogs.com/zhaoyang-1989/p/3284674.html