在html的input标签type=file类型时,accept属性可以过滤文件类型。...以下是常见文件的MIME对照表
{“.3gp”,”video/3gpp”},
{“.apk”,”application/vnd.android.package-archive”},
{“.asf”,...{“.gtar”,”application/x-gtar”},
{“.gz”,”application/x-gzip”},
{“.h”,”text/plain”},
{“.htm”,”text/html...”},
{“.html”,”text/html”},
{“.jar”,”application/java-archive”},
{“.java”,”text/plain”},
{“.jpeg”,