js获取上传文件扩展名

File_box.value.substring(File_box.value.lastIndexOf(".") + 1);

原文地址:https://www.cnblogs.com/handsomer/p/3678702.html