file标签使用
时间:2009-05-20 来源:hkebao
1.
<form action="" method="" name="a">
<input type="file" name="b" id="v">
<input type="button" onclick="javascript:alert(document.getElementById('v').value);">
</form>
不会将全部的目录读出来只能读取出来文件名出来的!
<form action="" method="" name="a">
<input type="file" name="b" id="v">
<input type="button" onclick="javascript:alert(document.getElementById('v').value);">
</form>
不会将全部的目录读出来只能读取出来文件名出来的!
相关阅读 更多 +