【发布时间】:2018-06-04 11:03:07
【问题描述】:
我有想要存储在数组中的数组对象的属性。以下是我的数据。
我想要实现的是将displays name 属性存储在opt[] 中,所以它看起来像这样opt = ['info1', 'info2', 'info3', ... ]
getEditData (id) {
axios.get('/api/campaign/getEdit/' + id)
.then(response =>{
this.campaign = response.data.campaign;
})
.catch(e=>{
console.log(e.data);
this.error = e.data
})
}
sn-p 上面是活动对象的来源
【问题讨论】:
-
粘贴生成您在此处显示的转储的 PHP 代码。
-
你想要嵌套在
displays下的键还是值? -
我想要@EatPeanutButter 的值
-
我已经粘贴了来源@Kyslik
标签: javascript arrays laravel vue.js