var right_type = new Array("avi","wmv","mpg","mpeg","mov","rm","ram","swf","flv","mp4","wma","rm","rmvb","flv","mpg","mkv")
// let upFileName = item.fileName;
// let index1=upFileName.lastIndexOf(".");
// let index2=upFileName.length;
// let suffix=upFileName.substring(index1+1,index2);//后缀名
if(right_type.includes(suffix)){}
处理相应需求
网友评论