new Date() } }); }); // ajax--get 请求 $("#getBtn").click(function(){ $.get( "ajaxServlet",{ action:"jqueryGet...().write( new Gson().toJson(new GsonTest.Person(random.nextInt(100), "12312"))); } protected void jqueryGet...request, HttpServletResponse response) throws ServletException, IOException { System.out.println("jqueryGet
getBtn").click(function(){ $.get("http://localhost:8080/day17/ajaxServlet",{ action:"jqueryGet...$.get( "ajaxServlet",{ action:"jqueryGet...new Gson().toJson(new GsonTest.Person(random.nextInt(100), "12312"))); } protected void jqueryGet...HttpServletResponse response) throws ServletException, IOException { System.out.println("jqueryGet
ajax--get 请求 $("#getBtn").click(function(){ $.get("http://localhost:8080/Test/ajaxServlet","action=jQueryGet
statusTxt=="error") alert("Error: "+xhr.status+":"+xhr.statusText); }); }); jQuery - AJAX get() 和 post() 方法 jQueryget
领取专属 10元无门槛券
手把手带您无忧上云