JQuery清除input file选中的文件
2018-05-17 本文已影响0人
李北北
只需要将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("");