日期:2014-05-16 浏览次数:20298 次
var file=document.getElementById("form1:fileupload"); file.outerHTML=file.outerHTML
<span id='uploadSpan'> <input type="file"> </span> <script language="JavaScript"> var html=document.getElementById('uploadSpan').innerHTML; function resetFile(){ document.getElementById('uploadSpan').innerHTML=html; } </script>