過濾文件名非法字符 windows
windows如今已知的文件名非法字符有 \ / : * ? " < > |spa
var reg = new RegExp('[\\\\/:*?\"<>|]');
if(reg.test(name)){ //文件名含有非法字符() }