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

                                }

  • 相关阅读:
    转:Gerrit 学习
    list, set操作
    Dice chrone execise
    【转】terminal 快捷键
    python package list
    爬虫2
    爬虫 1
    django跨表联查传输数据到前端
    vue实现鼠标移入移出事件
    pycharm意外关闭导致报错Unexpected content storage modification:
  • 原文地址:https://www.cnblogs.com/chenweida/p/6145801.html
Copyright © 2011-2022 走看看