Cannot read properties of undefined (reading '_c')
时间: 2023-10-17 21:26:26 浏览: 110
这个错误通常是由于对象未定义引起的。在你的问题中,错误是"Cannot read properties of undefined (reading '_c')"。根据引用,这意味着你的对象是 undefined,因此无法读取属性"_c"。为了解决这个问题,你可以使用引用提供的解决方法,在接收服务器返回数据的地方添加一个空对象的判断。例如,可以这样写:(this.role.list || {}).xxx。这样即使数据没有返回,也会有一个空对象,从而避免产生错误。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [jQuery 出现Cannot read property ‘msie’ of undefined错误的解决方法](https://download.csdn.net/download/weixin_38693586/14805574)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [轻松定位解决“TypeError: Cannot read properties of undefined (reading ‘xxx‘)](https://blog.csdn.net/weixin_50768156/article/details/128171769)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文