0
私のurl jsonは@_____ですが、私はこれを呼び出すことはできません。それを得る方法? あなたの答えに感謝します。JSONデータの呼び出し方法 "@"
" RESULT":{
"FACET":[{ "@NAME" : "creator", "@COUNT" : "20",
"FACET_VALUES":[
{
"@KEY":"Book Company1",
"@VALUE":"13"},
{
"@KEY":"Book Company1์",
"@VALUE":"10"}
]
。
this.http.get("my_url")
.subscribe(data =>{
this.items=data.json().RESULT.FACET.FACET_VALUES;
},error=>{
console.log(error);
});
。
<ion-list>
<ion-item *ngFor="let item of items" (click)="itemClicked($event,item)">
<h2>{{[email protected]}}</h2> /////this error
<p>{{[email protected]}}</p> /////this error
<button ion-button clear item-right (click)="buttonClick($event)">View</button>
</ion-item>
</ion-list>
非常によかった!私はそれをやりました! – fongfuse