js实现在html页面使用file选择框选中图片后使用img标签显示出来 1、body: <body> <div> <img id="MYimg" src="" /> </div> <div style="margin-top: 20px;"> <a href="javascript:void(0)" class="file"> <input type="file" name="" id="MYFile" /> </a> </div>