隐藏file空间,使用一个button按钮的onclick事件代替
<form name=formen> <input type="file" name="picpath" id="picpath" style="display:none"
onChange="document.formen.path.value=this.value"> <input name="path" readonly>
<input type="button" value="Browse" onclick="document.formen.picpath.click()">
</form>
时间: 2024-11-01 19:26:11