我正在尝试使用以下代码绑定数据:
{{company.category}} | {{company.locations[0]}}
{{company.company_name}}
输出是:
[{"id":1,"category":"Advertising and Agencies"},{"id":2,"category":"Arts and Music"},{"id":3,"category":"Client Services"},{"id":4,"category":"Consumer"},{"id":5,"category":"Education"}] | {"id":1,"cities":"Delhi"}
Microsft Corp
我不知道为什么会有这么多大括号和 id。我哪里错了?我正确显示了公司名称。