file标签中的value属性是readonly的,不能直接指定其value="xxxxxx",这个是window系统安全方面的。可以考虑一个笨方法<input id="f1" type="file" style="display:none">
<input id="f2">
<input type="button" value="浏览..." onClick="f1.click(); f2.value=f1.value;">
<input type="button" value="赋值" onClick="f2.value='C:\\test.doc'">
<input id="f2">
<input type="button" value="浏览..." onClick="f1.click(); f2.value=f1.value;">
<input type="button" value="赋值" onClick="f2.value='C:\\test.doc'">
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货