javascript - Angular's http request reports 400 error?
我想大声告诉你
我想大声告诉你 2017-06-20 10:06:10
0
4
788


The interface provided by the background is like this. After I wrote it, I reported a 400 error. I checked that the format was the same as the one he requested. Where did I go wrong?

我想大声告诉你
我想大声告诉你

reply all(4)
小葫芦

URL must be complete, address and port number items

曾经蜡笔没有小新

Try setting the header in $http

headers: {
  'Content-Type': 'application/json'
}
为情所困

Request path problem

代言

Your http request is a local address. You should request the server address

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template