this is not impossible, but you will find that when you have more bytes of parameters after url, it will not work, because the length of url is limited. When the request method is post, you should put the parameters in data and operate according to the specification
because yours is query string parameters
No parameter serialization form data
you write the request parameters in the data of $.ajax
, and then send get and post, respectively to observe the network debugging information and you can see the difference
.
it is recommended to read more about http
http://www.java1234.com/a/jav.
I think it's because the backend uses $_ REQUEST to connect parameters
because $_ REQUEST contains $_ GET $_ POST and $_ COOKIE
by default.
I guess I'm also a front-end
jsonp
specifying request method is invalid.
jsonp
only
get
method.
the difference between Baidu
jsonp
and
ajax
GET can only send request header, which is a simple request, data type string,
post can send request header, picture stream, josn data, string, etc. When POST sends the request header data, that is, what you call the assembly string parameter, it actually comes with the get parameter in the past time of the POST request. The backend can use GET to obtain the data and POST data
.