vue backstage access interfaces using axios

Link 1: HTTPS: // //segmentfault.com/a/1190000012635783#item-2 Axios way of passing parameters using the post, not receive back-end, how to solve

Link 2: https: //blog.csdn.net/weixin_43851769/article/details/86505164 // vue use qs library plug-
Link 3: https: //blog.csdn.net/itrytellyou/article/details/79237922 // For parameters front and back of axios.post of delivery problems

1, jquery post request when executed, sets the Content-Type form default format form, and the use of native ajax, when axios request, the default is text / plain, and therefore it does not modify the value in question receives only the background! ! !

2, the data carried by the get request will be spliced to url, url and the length is limited (different browsers, the situation may be different).  However, when the amount of data particularly when, it is not apparent GET request , it should request a more appropriate post

3, the query string (URL parameter) means for transmitting the plus end of the URL character string information (variable) to the server. The "?" At the end of the URL, then add "parameter = value" and want to add more parameters, use "&." With this form, you can want to send to the data server to the URL.

Guess you like

Origin www.cnblogs.com/wskb/p/12049413.html