<input type="file" accept="application/msword" >
accept属性可以做到上传时,只显示规定的文件类型
accept=”application/pdf”
accept=”image/gif”
accept=”image/jpeg”
accept=”text/html”
accept=”video/x-msvideo”
accept = ‘image/*’
<input type="file" accept="application/msword" >
accept属性可以做到上传时,只显示规定的文件类型
accept=”application/pdf”
accept=”image/gif”
accept=”image/jpeg”
accept=”text/html”
accept=”video/x-msvideo”
accept = ‘image/*’