<img id="validateCode" src="getCode" width="75" height="30" onclick = "this.src='getCode?'+Math.random()" />
连接加随机数告诉浏览器这是一次新的请求
<img id="validateCode" src="getCode" width="75" height="30" onclick = "this.src='getCode?'+Math.random()" />
连接加随机数告诉浏览器这是一次新的请求
转载于:https://my.oschina.net/yuhangyes/blog/887631