<img id="image" src="/upload2/attachments/cover/cover_docker.png" width="160" height="120"> <script> document.getElementById("image").src="/attachments/cover/cover_javascript.png"; </script> <p>原图片为 cover_docker.png,脚本将图片修改为 cover_javascript.png</p>