我想使用iron-ajax从这个json响应中打印id:
{"calinzabalt":{"id":22309843,"name":"calin zabalt","profileIconId":7,"summonerLevel":30,"revisionDate":1467295590000}}
使用以下代码行:
<iron-ajax auto
url="https://euw.api.pvp.net/api/lol/euw/v1.4/summoner/by-name/calin%20zabalt?api_key=3012a279-b76c-4df2-b522-2198a0cbe7cc"
handle-as="json"
last-response="{{response}}"></iron-ajax>
<template is="dom-repeat" items="{{response}}" >
<p>[[item.id]]</p>
</template>
</template>
这是我从chrome获得的信息:
谢谢!