iframe有缓存的问题,导致新加的页面效果经常不起作用。解决办法:对iframe的href后添加随即get值,来逃避iframe的缓存。
所以干脆直接对指向iframe的<a>添加 js:
<a href="${basePath}shiti/createShiti.action" target="main"
onClick="javascript:this.href=this.href+'?new='+Math.random();alert(this.href)">试题添加</a></td>
因为