如果只是IE,可以用
<input type=file name=ttt>
<input type=button onclick="ttt.select();document.execCommand('Delete');" value=清除file框的内容>不是的话要用innerHTML重新组装这个file元素
<input type=file name=ttt>
<input type=button onclick="ttt.select();document.execCommand('Delete');" value=清除file框的内容>不是的话要用innerHTML重新组装这个file元素
<input type=button onclick="ttt.select();document.execCommand('Delete');" value=清除file框的内容>