var f = document.getElementById("myFile"); if(f.value){ var form = document.createElement('form'), ref = f.nextSibling, p = f.parentNode; form.appendChild(f); form.reset(); p.insertBefore(f,ref);
IE重置input file
最新推荐文章于 2021-12-14 10:01:48 发布
var f = document.getElementById("myFile"); if(f.value){ var form = document.createElement('form'), ref = f.nextSibling, p = f.parentNode; form.appendChild(f); form.reset(); p.insertBefore(f,ref);