ajax怎么获取servlet返回的字符串

2024-11-08 18:03:33
推荐回答(1个)
回答(1):

HttpServletResponse resp;
PrintWriter out = resp.getWriter();

out.write(String.valueOf(str));