先将UPLOAD控件放上去!然后给他的display设为none!
然后再整个按钮来调用file控件的点击事件就好了嘛!
代码如下:
<input type=file name=j style="display: none;">
<input type=button value="File" onclick=j.click()>
转载于:https://www.cnblogs.com/lx0831/archive/2008/11/21/1338406.html