我想从内容中获取数据,并且使用了RTF数据类型。但是,当我尝试从对象中调用数据时,总是会得到不确定的信息。有人可以解释我该怎么办?
<div
v-for="facilitator in currentEvent.fields.facilitators"
:key="facilitator"
class="columns facilitators"
>
<img
class="column is-2 facilitator-photo"
src="~assets/img/imam_wahyudi.jpg"
/>
<div class="column is-10 facilitator-desc">
<p class="facilitator-name">
{{ facilitator.name }}
</p>
<p class="facilitator-occ">{{ facilitator.occupation }}</p>
<p class="class-overview">{{ facilitator.overviewKelas }}</p>
<p>{{ test(facilitator) }}</p>
</div>
</div>
我还在控制台中打印了数据结构,这是结果:
(2) [{…}, {…}, __ob__: Observer]
-0:
--content: (...)
--data: Object
---target: Object
----fields: Object
-----classOverview: (...)
-----name: (...)
-----occupation: (...)
-----photo: (...)
我希望获得classOverview,名称,职业和照片中的值