//JavaScript根据文件名判断文件类型 var imgExt = new Array(".png",".jpg",".jpeg",".bmp",".gif");//图片文件的后缀名 var docExt = new Array(".doc",".docx");//word文件的后缀名 var xlsExt = new Array(".xls"
C# 判断文件有没占用 using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace AdminTools { public static class FileTools { [DllImport("kernel32.dll")] private static extern