angular.js - 新手问题: $resource定义url的问题
曾经蜡笔没有小新
曾经蜡笔没有小新 2017-05-15 17:02:01
0
3
591

我就直接上图吧!

新手,求大神解答!感激不尽。

曾经蜡笔没有小新
曾经蜡笔没有小新

reply all(3)
漂亮男人

Check whether the URL path of the resource request is written incorrectly

某草草

Check if the id has not been obtained?

某草草

Suppose you have this APIapi/regions/:id,真的是PUT方法,那你在浏览器里直接访问http://localhost:3000/api/regions/某一个ID,服务器肯定不允许。因为浏览器里URL形式访问是GET method.

Secondly, the API in the first picture is api/regions/:id,这里有:id。第二张图里浏览器里访问的是http://localhost:3000/api/regions,没有id. The two seem to have nothing to do with each other, so what do you want to ask?

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