标签:alert tco har ext ack write window asc flush
核心代码:方法参数要有response
response.setContextType("text/html;charset=UTF-8");
PrintWrite out = response.getWrite();
out.write("<script type=‘text/javascript‘>alert(‘这是一个弹出框!‘);window.close();</script>");
out.flush();
out.close();
标签:alert tco har ext ack write window asc flush
原文地址:http://www.cnblogs.com/wxm-bk/p/7381936.html