这是REST API的响应
{name:test,age:25,male:true},{name:test1,age:26,female:true},{name:test3,age:27,male:true}
如何在前端显示
<div *ngFor="let item of bundle | keyvalue">
<li>{{item.key}}:{{item.value}}</li>
</div>
它打印得像
0:{姓名:test,age:25,male:true}
1:{name:test1,age:26,female:true}
2:{name:test3,age:27,male:true}
还有
<div *ngFor="let item of bundle">
<li>{{ item.name}}</li>
<li> {{item.age}} </li>
</div>
它不起作用
预期结果
姓名:test年龄:25男性[/]