我如何从数组响应中获取项目列表

时间:2019-05-12 11:00:13

标签: ionic-framework

我有这个阵列,我需要把技能放到离子徽章上。请帮助

这是我正在尝试的事情,但是在将技能分配到包含技能的数组中后,我在控制台中变得未定义。

this.skills=this.iteminfo.skills;
 console.log(this.skills['name']);

{id: "10a6a311-a68c-47b0-97fc-013bf5da3375", status: 0, rating: 0, price: 600, schedule: "5/11/2019 9:00:00 AM", …}
client: {id: "ddc249f1-69c5-4418-85c9-4e0131724fb2", firstName: "Dan", lastName: "Ng'ang'a", picture: "/media/images/users/default-user.png"}
description: "gsgsgsgsgsergegreherhrehr fnfjrtjrtjrjrjrjrjrj"
freelancer: {id: "ddc249f1-69c5-4418-85c9-4e0131724fb2", firstName: "Dan", lastName: "Ng'ang'a", picture: "/media/images/users/default-user.png"}
id: "10a6a311-a68c-47b0-97fc-013bf5da3375"
location: "Ruiru"
postedOn: "5/11/2019 3:13:41 AM"
price: 600
rating: 0
schedule: "5/11/2019 9:00:00 AM"
skills: (2) [{…}, {…}]
status: 0
__proto__: Object

0 个答案:

没有答案