【发布时间】:2019-07-17 16:25:23
【问题描述】:
您好,如何在我的 vuejs 中显示这些数据
我想在一个变量中显示这组数据?
我尝试了 notification.data.user_id 但它没有显示任何内容。
<div v-for="notification in notifications" v-bind:key="notification.id">
{{ notification.data.user_id }}
</div>
notifications: {
0: object {
data: "{\"user_id\":44,\"body\":\"Thank you for registering your shop 'Alexis Corbi23' in our site!\",\"actionURL\":\"http:\\/\\/127.0.0.1:8000\\/shop\\/dashboard\"}"
}
}
【问题讨论】:
标签: laravel vue.js single-page-application