vue报错:“TypeError: Cannot read property ‘username’ of undefined” 问题 我们在进行数据绑定的时候,出现如图的错误 我的代码: 解决方法: 这可能是从一个对象中获取,超过两个就报错 我的解决方法就是在return中用采用…的方式进行