after the project is large and small there are many, the impression that many of the framework of low-level encapsulation method is based on the Ajax () method to expand. The AJAX approach can be said to be the originator of various AJAX-related methods provided by jquery, and all other methods, such as Load,get,post,getscript,getjson, are extended to the jquery.ajax approach.
The following is an actual demo that uses the above parameters once:
Front-end page code:
<%@ page language= "java" import= "java.util.*" pageencoding= "Utf-8"%><! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" >
Back-End Code:@Overrideprotected void DoPost (HttpServletRequest req, HttpServletResponse resp) throws Servletexception, IOException { String name = Req.getparameter ("name"); String address = Req.getparameter ("Address"); StringBuffer sb = new StringBuffer (""); Sb.append ("{\" name\ ": \" ") . Append (name) . Append (" _czz\ ", \" Address\ " : \ "") . Append (address). Append ("_czz\"} "); Resp.getwriter (). Print (sb.tostring ());}
In fact, the best information of jquery is the official document, which has all the detailed content, the weekend happy!