会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
vk隐
博客园
首页
新随笔
联系
管理
2019年9月19日
vue created钩子使用后台数据赋值给data里的变量,报错‘undefined’
摘要: created: function () { this.$axios.post('/jsonData').then( function (res) { this.cares = res.data; console.log(this.cares) }) 以上报错‘undefined’ 经过查询得知,.
阅读全文
posted @ 2019-09-19 15:23 vk隐
阅读(6178)
评论(0)
推荐(1)
编辑
公告