2015-10-17 100 views
1

下面是從服務器的JSON我只想打印名字形式的客戶名單如何在句柄中顯示數組json中的數據?

var PatientList = [{ 
    "Customer": [{ 
    "phone": 1234567890, 
    "name": "customer" 
    }], 
    "Patients": [{ 
    "age": null, 
    "relationship": null, 
    "id": 5, 
    "weight": null, 
    "name": "customer" 
    }], 
    "Lead": [{ 
    "source": 1, 
    "id": 3, 
    "service": 3 
    }] 
}]; 

回答

0
{{#each PatientList}} 
    {{#each Customer}} 
    <div>{{name}}</div> 
    {{/each}} 
{{/each}} 
+0

這不是工作 – xxCodexx