一种比较好的文件上传按钮样式定义
直接看例子:
<script> $(function(){ $("#button2").click(function(e){ $("#button1").click(); }); $("#button1").change(function(e){ console.log(22); }); }); </script> <input type="file" id="button1" value="button1"/> <a href="#" id="button2" targetto="input#button1">button2</a>