其实就是把这个input隐藏起来,然后用按钮来代替它就可以 <button onclick="">上传文件</button> <input type="file" style="display:none;">