The following are personal notes, if there are errors, please correct
Get and post are pretty much the same in terms of notation.
$.ajax ({ type:"get",//get data:data, success:function () { /*some code*/ }, error:function () { /*some code*/ }});
This is roughly the same thing.
But they still have a clear gap:
1. The content obtained by get is cached by the browser, and post does not;
2. When a get sends a request, the parameters that accompany it are displayed directly behind the URL, and post is via the HTTP POST mechanism.
The Post method is implicit to the user by placing each field within the form with its contents in the HTML header, along with the URL address referred to by the Action property.
So this also derived a difference, get security is poor, if there is important content in the transmission, it will be exposed;
3. Get and post can transmit a significant difference in the amount of data, get words within 2k, and post is generally unrestricted.
Remember the similarities and differences between get and post in Ajax