input file 文件上传控件隐藏后用button触发它的click事件

kbryant kbryant 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
input file 文件上传控件隐藏后用button触发它的click事件为什么文件就上传不上去了,代码


<input type="button" value="test" onclick="f.click()" class="btn_mouseout"/>
<input type="file" id="f" name="f" onchange="doChange(this);" contentEditable="false" accept="text/html" style="disable:none"/>
...全文
评论 42
收藏 已收藏
分享
返回顶部
kbryant
Web 开发 81,108 成员 341,721 内容