This article is a mirror article of machine translation, please click here to jump to the original article.

View: 10439|Reply: 0

[Jquery] Use POST to request a page jump

[Copy link]
Posted on 6/21/2019 2:31:50 PM | | |
A colleague encountered a problem, in jsp, if you use the get command, the Chinese will be garbled, and you want to convert all get requests to post requests without modifying the tomcat configuration.

I have always thought that after a post request, it is not just a piece of data, how to return an html page?

Through searching, I found a solution, using jQuery to create a form object in memory, and then calling the submit method of this object
Extension:
Call:






Previous:Recruitment: IoT Architect
Next:JS array operation summary
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com