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

                                }

  • 相关阅读:
    维护win10注册表
    win10操作技巧
    无处不网络
    事件驱动编程思想
    流程控制之if...else
    python----GIL的概念
    并发与同步异步的概念
    实现并发join的方法
    线程的调用
    三元运算符
  • 原文地址:https://www.cnblogs.com/chenweida/p/6145801.html
Copyright © 2011-2022 走看看