zoukankan      html  css  js  c++  java
  • 后台js弹提示

    StringBuffer sb=new StringBuffer();

                             try{

                                    sb.append("<script> location.href="member_index.html";</script>");

                             }catch(RuntimeException e){

                                    this.showErrorJson(e.getMessage());

                             }

                            

                             HttpServletResponse response  = ThreadContextHolder.getHttpResponse();

                             response.setCharacterEncoding("utf-8");

                             response.setHeader("Cache-Control", "no-cache");

                             response.setContentType("text/html; charset=utf-8");

                             try{

                                    PrintWriter pw=response.getWriter();

                                    pw.print(sb.toString());

                             }catch (Exception e) {

                                    // TODO: handle exception

                                }

  • 相关阅读:
    .net core 认证与授权(三)
    .net core 认证与授权(二)
    .net core 认证与授权(一)
    算法常识——快速排序
    ip 在网络传输中是如何传递的
    打开c++ 项目遇到的错误
    算法常识——鸡尾酒排序
    算法常识——冒泡排序
    算法常识——排序汇
    Tomcat 生产服务器性能优化
  • 原文地址:https://www.cnblogs.com/chenweida/p/6145801.html
Copyright © 2011-2022 走看看