📜  删除元素的图像输入 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:30.904000             🧑  作者: Mango

代码示例2
//clear a file input with jQuery 
$("#myFileInputID").val(null);

//clear file input in plain Javascript
document.getElementById("myFileInputID").value = null;