Solve the issue of POST in Vue to submit data background unable to receive problems

Recently used Vue to do projects, encountering the problem of AJAX.

Submitted in a POST, the background cannot receive a value. Baidu has been half a day, all kinds of solutions have, download the middleware, etc., all tried.

The last consultation of the big cattle knows that there is no sequence of data.

解决vue中post方式提交数据后台无法接收的问题

Because I don’t use the arrow function, I need to redefine this outside, this is not very good. , Because sometimes I forgot, I am very embarrassed.

But I don’t know why, I used JSon.stringify () before I didn’t work.

VAR QS = Require (‘QueryString’) qs.stringify (data)

 is OK.   The above (title) is the full content of Xiaobian sharing to everyone, I hope I can give you a reference, and I hope everyone will support Tumi Cloud. 
© Copyright Notice
THE END
Just support it if you like
like0
share
comment Grab the couch

Please log in to comment