JavaShuo
栏目
标签
Uncaught (in promise) TypeError: Cannot read property 'data' of undefined
时间 2021-01-04
标签
项目Bug解决
React
Redux
fetch
栏目
React
繁體版
原文
原文链接
最近在学习Redux的时,自己写了个Demo,用fetch异步调用接口时返回这个脑壳疼的问题。 问题: 问题排查: 一步一步在控制台打印,并检测类型,发现控制台打印undefined,才意识到第二个then方法未接收到上个then的返回值,原来是箭头函数这块出的问题,使用箭头函数时传入一个参数并返回一个参数时,()与return是可以省略的,此处是一个表达式,需要用return返回才有效,老是健忘
>>阅读原文<<
相关文章
1.
Uncaught (in promise) TypeError: Cannot read property ‘slice‘ of undefined
2.
Uncaught (in promise) TypeError: Cannot read property 'protocol' of undefined
3.
Uncaught (in promise) TypeError: Cannot read property '$router' of undefined
4.
[Angular] ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'name' of undefined
5.
group.vue?5c68:295 Uncaught (in promise) TypeError: Cannot read property ‘errmsg‘ of undefined a
6.
Uncaught TypeError: Cannot read property 'toLowerCase' of undefined
7.
datatables Uncaught TypeError: Cannot read property 'defaults' of undefined
8.
React中Uncaught TypeError: Cannot read property 'setState' of undefined
9.
VM9:1 Uncaught TypeError: Cannot read property 'parentNode' of undefined
10.
layer.js:2 Uncaught TypeError: Cannot read property 'extend' of undefined
更多相关文章...
•
ASP Read 方法
-
ASP 教程
•
SQL IN 操作符
-
SQL 教程
•
JDK13 GA发布:5大特性解读
•
为了进字节跳动,我精选了29道Java经典算法题,带详细讲解
相关标签/搜索
uncaught
typeerror
property
undefined
read
read%
data
promise
DATA+++
c#property
React
Spring教程
MyBatis教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
No provider available from registry 127.0.0.1:2181 for service com.ddbuy.ser 解决方法
2.
Qt5.7以上调用虚拟键盘(支持中文),以及源码修改(可拖动,水平缩放)
3.
软件测试面试- 购物车功能测试用例设计
4.
ElasticSearch(概念篇):你知道的, 为了搜索…
5.
redux理解
6.
gitee创建第一个项目
7.
支持向量机之硬间隔(一步步推导,通俗易懂)
8.
Mysql 异步复制延迟的原因及解决方案
9.
如何在运行SEPM配置向导时将不可认的复杂数据库密码改为简单密码
10.
windows系统下tftp服务器使用
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
Uncaught (in promise) TypeError: Cannot read property ‘slice‘ of undefined
2.
Uncaught (in promise) TypeError: Cannot read property 'protocol' of undefined
3.
Uncaught (in promise) TypeError: Cannot read property '$router' of undefined
4.
[Angular] ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'name' of undefined
5.
group.vue?5c68:295 Uncaught (in promise) TypeError: Cannot read property ‘errmsg‘ of undefined a
6.
Uncaught TypeError: Cannot read property 'toLowerCase' of undefined
7.
datatables Uncaught TypeError: Cannot read property 'defaults' of undefined
8.
React中Uncaught TypeError: Cannot read property 'setState' of undefined
9.
VM9:1 Uncaught TypeError: Cannot read property 'parentNode' of undefined
10.
layer.js:2 Uncaught TypeError: Cannot read property 'extend' of undefined
>>更多相关文章<<