document.getElementById("randImage").src="images/image.jsp?"+Math.random() 这是因为浏览器有缓存,加个参数能够强制让浏览器刷新缓存