Home > front end >  For SpringMVC front page spread value to the backend
For SpringMVC front page spread value to the backend

Time:09-23



Personal now encountered such a problem in the process of learning, the front page as shown in figure there are several modules, let the user choose school province respectively, the level of the school (985/211/double class), level (undergraduate course and specialized subject), school type (comprehensive, institute of technology, military... ), I don't know front end how to do ability to let the user can also choose this several modules of attribute, and then passed to the backend, as in the figure shows that,
Now I just put each module respectively with a form form, through the form form value, but every time can only transfer a module properties, such as front-end click after school type (institute), query out what are the types of schools, however, when I want to query the provinces to Beijing, what school types for polytechnic school, when I click on provinces (Beijing), institute of technology, the properties and the ZhaXunChu is Beijing's school, how to solve this problem?

I don't know if I express is not clear enough to let you know what I mean, also hope that we can have some ideas, or a similar function can be solved in detail,

New here, thank you in advance!!!!

CodePudding user response:

Ajax understand, partial refresh, don't refresh the page

CodePudding user response:

If you want to one-time multiple value transmission, can first every time to push the selected module attributes to an array or added to a json object inside for you, may be added to the array (easy), and then by triggering the confirm button threw the array/json object to background is finished

CodePudding user response:

Documentget once, and then with ajax
  • Related