使用aws-lib nodejs模块访问Amazon附属API检索代码:
prodAdv.call("ItemLookup", {ItemId: "B010T6D39O , B0136JONG8", ResponseGroup: "Images,ItemAttributes,Offers"}, function(err, result) {
res.send(JSON.stringify(result));
})我在/amazon的网址上收到这个http://pastebin.com/A1Uy5nE0。然后我使用
<div ng-repeat="amazon in amazon">
{{amazon.Item}}
</div> 以显示所有数据,但无法选择特定数据,并且在尝试使用
| filter:{}
我收到一个错误,指出文档的格式错误。这可能是我无法使用此数据或检索数据的方法的情况。我需要能够调用amazon.LowestNewPrice或amazon.LargeImage,但无法调用。
谢谢
发布于 2016-04-21 04:00:19
在您的html中使用它来过滤
<div ng-repeat="amazon in amazon | filter:{ Name : "ResponseGroup"})>
{{amazon.Item}}
</div> 用于过滤嵌套属性的
<div ng-repeat="amazon in amazon |
filter:{ property.subproperty:filterValue})>
{{amazon.Item}}
</div>https://stackoverflow.com/questions/36753620
复制相似问题