document.getElementById("inFile1").value = null; 解决这个问题其实很简单,就是在最后不管上传成功还是失败 都在input的change事件里面,将input的val修改为空就行了