本文主要是介绍常见附件的后缀,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
// 视频类
const videoSufix= ["avi","wmv","mpg","mpeg","mov","rm","ram","swf","flv","mp4","wma","rm","rmvb","flv","mpg","mkv"]
// 音频
const audioSuffix = ["wav","midi","cda","mp3",,"m4a","ape","flac","ogg","aif","aiff","mid","wma","ra","vqf"]
// 压缩文件
const zipSuffix = ["rar","zip","arj","z"]
// 图片
const imgSuffix = ['jpg', 'jpeg', 'gif', 'png' ,'bmp','webp']
判断类型
videoSufix.includes(suffix)
这篇关于常见附件的后缀的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!