<script language="javascript" type="text/javascript"> <!-- function count(){ alert(document.form1.a.value); } --></script> <form name="form1" id="f1" method="post" action=""> <input name="sum" 0nClick="count()" value="给我看" type="button"> <input type=file id="a" > </form> 请点击“浏览”后,或者在文件域输入框内输入后才能显示输入框内内容