AngularJS RESTful 参数
AngularJS RESTful 参数
是否可能使用AngularJS的$http
服务来给restful url加上参数?例如:
var URL = '/api/countries/:countryId/states' var getStates = function (countryId) { $http.get(URL, { countryId: countryId }).then(); };
我尝试的每一种组合最终都使用查询字符串,这不是我想要的。
admin 更改状态以发布 2023年5月21日