网上找了很多代码,总的来说,核心是readyState的状态变化的捕获iframe如下:<iframe frameborder="0" name="readTxt" id="readTxt" width="100%" height="250"></iframe>javascript:function setVisiblity(){ if(document.readTxt.document.readyState== ...
虽然没有必要使用组件,既然用到了,做个备忘:主页:a.jsp加入这样一个按钮<input type="button" name="Submit3" onClick="window.open('downloadTxt.jsp')" value="模板下载" />在downloadTxt.jsp中<%@ page contentType="text/html;charset=gb2312" import="com.common.upload.*" %>&l ...
getResponse的getWriter()方法连续两次输出流到页面的时候,第二次的流会包括第一次的流,所以可以使用将response.reset或者resetBuffer的方法。reset(): Clears any data that exists in the buffer as well as the status code and headers. If the response has been committed, this method throws an IllegalStateException.resetBuffer(): Clears the content of t ...
hydex
搜索本博客
我的相册
5e0be7a5-3ea9-31fe-a7c4-7a19f3b7d537-thumb
自行车
共 1 张
存档
最新评论