JQuery USES ajax to transport very large amounts of data

  • 2020-03-30 03:31:39
  • OfStack

Directly speaking, the Ajax request of Jquery(1.6) was used in one page, and the array displayed by post was more than 500 pieces. The PHP terminal could only accept about 50 pieces. At first I thought it was a web server setup, so I changed everything like max_upload_size. But it didn't work. Then I tried to use max_input_vars, which is a new toy. Later, when the client's data exceeded 2000, the PHP side still couldn't fully accept the data sent by ajax. Finally, the solution was found on a foreign website.

Before the post is sent, the variable to be sent is treated with json.stringify, which is fine. Please move here:


Related articles: