如何从json抓取字段

时间:2020-09-18 10:30:32

标签: vue.js vuejs2

这是{{todo}}所显示的内容,但是每当我尝试执行{{todo.title}}时,都不会显示任何内容,如何仅获取标题和completed_at?在数据中,待办事项是[]

androiddeployqt
[ { "id": "b8fc8820-2bdd-43e1-a05a-c4a483e44faf", "title": "TEST", "description": null, "deadline_at": null, "completed": true, "completed_at": "2020-09-16T15:21:36+02:00", "priority": false, "inserted_at": "2020-09-16T15:21:18+02:00", "updated_at": "2020-09-16T15:21:36+02:00" } ]

1 个答案:

答案 0 :(得分:0)

似乎flow也是todo,因此,如果要访问标题:

array