一个关于 <input type="file" name="file">的问题

各位DX,我是小菜鸟,最近作了一个页面,上面有用到

1<input type="file"/>

这个控件,但是不想用reset的方法清空里面的值,请问怎么能够单把这个控件里面的值清空呢?有劳各位了!!!
---------------------------------------------------------------

1<script>   
2function clearvalue(){   
3hui.select();   
4document.execCommand("delete");   
5}   
6</script>
1<input name="hui" type="file"/>
1<input onclick="clearvalue()" type="button" value="清除"/>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus