input file控件限制上传文件类型如下: 文件类型中间用,分开;html和htm这样的要写成两个;实例: <input type="file" name="filePath" accept=".jpg,.jpeg,.doc,.docx,.xls,.xlsx,.pdf">