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?
曾经蜡笔没有小新2017-06-20 10:08:10
Try setting the header in $http
headers: {
'Content-Type': 'application/json'
}
代言2017-06-20 10:08:10
Your http request is a local address. You should request the server address