struts2 and ajax, pass data to the background on the page

struts2 and ajax, there are two forms to pass data to the background on the page

    Passing data from the foreground to the background

       * form form

           $("form").serialize(); In this way, the data in the form can be submitted, and the background can be directly obtained

       * In the js code, a js format object is formed, which is to be passed to the background

    Call back data from the background to the foreground

       In the query of the associated object, the associated object is generally not loaded, and @JSON(serialize=false) is written on the get method of the object.

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326778798&siteId=291194637