可以使用jQuery将图片的绝对地址,传入图片标签中,设置它的src的值为图片地址。 jsp测试代码如下:
$("#img_id").attr("src",");
document .getElementById ("a").src="路径"