只需要将input的值设置为空字符串就可以了
<input type="file" id="excel" onchange="loadFile(this.files[0])" >
$("#excel").val("");
只需要将input的值设置为空字符串就可以了
<input type="file" id="excel" onchange="loadFile(this.files[0])" >
$("#excel").val("");
本文标题:JQuery清除input file选中的文件
本文链接:https://www.haomeiwen.com/subject/uelidftx.html
网友评论