专题文章
时长:00:00更新时间:2020-11-27 20:22:24
可以使用jquery的getJSON()方法请求服务器返回json格式数据。js代码。服务器端servlet响应。,@Override protected void doPost(HttpServletRequest req.HttpServletResponse resp) throws ServletException.IOException { String person=";{";name";:";zhangsan";,";sex";:";man"。注意:json数据属性名和字符型值都必须是双引号。
查看详情