1. 上传

input标签的accept属性
  • 只能用于文件上传
  • 过滤上传文件类型
<form>
  <input type="file" name="pic" id="pic" accept="image/gif, image/jpeg" />
</form>
<input accept="MIME_type">

MIME_type是文件的MIME_type类型

Copyright © eamiear all right reserved,powered by Gitbook该文件修订时间: 2019-06-17 16:18:09

results matching ""

    No results matching ""