相关疑难解决方法(0)

input[type=file] 的 Accept 属性允许其他扩展

有人知道为什么这个输入接受 .php 文件扩展名吗?

(至少在最新版本的chrome中是这样)

<input type="file" accept=".doc,.pdf,.txt,.rtl">
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

html file

5
推荐指数
1
解决办法
2368
查看次数

标签 统计

file ×1

html ×1