【js笔记】点击按钮弹出文件框

1 <input type="file" name="file1" id="1" onchange="add(this)" style="display: none" />
2 <input class="btn btn-default" type="button" value="上传Logo"onclick="document.getElementById(1).click();">

 

posted @ 2016-11-02 10:46  阿星喵  阅读(457)  评论(0编辑  收藏  举报