在做前台页面时,上传图片回显 使用 jquery的
$("#元素id").attr("src","路径");
不起作用,无奈之下修改为 js的原生代码
document .getElementById ("元素id").src=路径;