腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
Get
错误
‘
无法
读取
setState
行
上
未定义
的
属性
'
setState
’
、
、
、
由于某种原因,我一直收到这个
错误
,我不明白为什么,
错误
是 ? 下面是代码
的
相关部分,我将两个对象作为道具传递到这个DashBoard组件中,一个是firebase用户对象,另一个是我用来从firebase检索一些数据
的
数据库对象,我检查了一下,这两个对象被正确导入(如注释
的
控制台日志所示),但我一直收到这个
错误
,我不知道为什么?database.collection("Some_Collection_here").doc("Some_Id_here&quo
浏览 20
提问于2021-02-26
得票数 0
回答已采纳
3
回答
setState
不能使用axios
、
、
componentDidMount() { .then(function (response) {console.log(response.data); data: response.data }) console.log(error);} 我收到
浏览 0
提问于2018-09-15
得票数 1
回答已采纳
3
回答
如何在外部函数中使用
setState
?
、
import Request from 'superagent'; let url = '/* URL */'; this.
setState
({ });} export如何在外部文件中访问function/
setSt
浏览 2
提问于2017-06-07
得票数 2
回答已采纳
2
回答
“然后”块中
未定义
的
this.
setState
我有以下函数,this.
setState
在.then方法之外是可用
的
。autoWork(e) { actions.autoSubmit(exampleVarOne, exampleVarTwo({ disabledButton: true }) } });但是,我得到
浏览 5
提问于2021-02-05
得票数 0
回答已采纳
2
回答
SetState
未定义
、
因此,我试图使用
setState
并获得以下
错误
。第20
行
未定义
TypeError:
无法
读取
未定义
的
属性
“
setState
” timeoutModal: true }
浏览 0
提问于2018-08-22
得票数 2
1
回答
我有一个this.state,需要在componentDidMount中传递
setState
,如何在
setState
中使用bind(this)?
、
、
、
、
我在
setState
中有pass,怎么办?TypeError:
无法
读取
未定义
的
属性
“
setState
”constructor() { this.appthis.database.once("value", function(snapshot) { this.
浏览 0
提问于2019-02-10
得票数 2
回答已采纳
2
回答
TypeError:
无法
读取
未定义
的
属性
setState
我正在接收来自服务器
的
数据,但
无法
在浏览器
上
显示。我收到
错误
的
原因是: this.state={
浏览 3
提问于2017-01-16
得票数 2
回答已采纳
3
回答
我不明白当这两个代码完全相同时,为什么会发生这种情况
、
、
({lat:pos.coords.latitude}); err=>{ }这不是给我带来
错误
,但是当我在正常函数中使用
setState
时,它给了我一个
未定义
的
值,为什么?给我带来
错误
的
代码: console.log(pos);}erro
浏览 4
提问于2020-05-19
得票数 0
1
回答
React原生于Redux: API对象出现在我
的
console.log中,而不是我
的
视图
、
、
、
、
上
。我需要在我
的
console log
上
显示
的
对象,但是不能让它显示在我
的
view
上
。我得到
的
错误
是: TypeError:
无法
读取
NewsList.componentWillMount处
未定义
的
属性
浏览 1
提问于2016-06-25
得票数 2
2
回答
不理解状态
的
反应js
、
我得到了
错误
: getInitialState :function() { data: null }, axios.
get
('https://a
浏览 2
提问于2016-10-19
得票数 0
回答已采纳
2
回答
我正在尝试使用
setState
来作出反应
、
我正在尝试将
setState
函数用于我
的
App类中
的
一个方法。当前代码示例:this.
setState
({})我期望我
的
联系人数组从5到6
的
长度。我收到
的
错误
如下: TypeError:
无法
读取
未定义
addRandomContact
的
属性
“
se
浏览 4
提问于2020-04-21
得票数 1
回答已采纳
3
回答
react.js
无法
读取
未定义
的
属性
“
setState
”
、
、
、
、
这是我
的
Profile课程:state={email:'',userName:'',userID:''}; } request.open('
GET
', 'http://localhostrender() { ret
浏览 1
提问于2019-08-26
得票数 0
回答已采纳
1
回答
ReactJS和“and”
、
toReturn = [],var that = this; promises.push(axios.
get
function(response) { console.log("toReturn: " + toReturn); });} 但是为了让它正常工作,我必
浏览 2
提问于2017-10-12
得票数 0
2
回答
ReactJS
无法
访问
setState
内部
的
响应对象
我正在尝试更新setSet,将其作为RestAPI输出
的
一部分。但是,我收到一个
错误
,即响应对象是
未定义
的
。我能够在
setState
方法之外记录它。this.state.newTodoList.task) .then(response=>{ this.
setState
prevState.TodoList.push(response.dat
浏览 0
提问于2019-01-27
得票数 1
回答已采纳
2
回答
setState
: TypeError:
无法
读取
未定义
的
属性
(
读取
'
setState
')
、
、
、
、
在尝试使用async函数从S3获取一些数据时,我得到了以下
错误
:TypeError: Cannot read properties of undefined (reading '
setState
') console.log("Error uploading file: ", error); //<
浏览 4
提问于2022-01-30
得票数 0
回答已采纳
1
回答
使用match()对regex进行regex应用程序获取
错误
、
、
、
componentDidMount(){ if(res.data.template_id.match(/^[a-z0-9]+$/i)){ templates: res.data, }} 我得到
的
错误
是:未处理拒绝(TypeErr
浏览 0
提问于2020-03-18
得票数 0
回答已采纳
1
回答
我得到了
错误
:当我运行我
的
react项目时,
无法
读取
未定义
的
属性
‘那么’
、
、
我知道
错误
:getQuestions = () => { questionBank: question }); };
浏览 2
提问于2021-01-22
得票数 0
1
回答
在react中调用api时,出现
无法
读取
未定义
的
属性
'then‘
的
问题
、
我得到TypeError:在react.js和redux中调用api时,
无法
读取
未定义
的
属性
'then‘。; this.
setState
({ loading: false}); } 我在这一
行
得到了
无法
读取
的
this.props.fetchCate
浏览 21
提问于2019-09-01
得票数 0
回答已采纳
1
回答
无法
读取
React MailChimp注册表单中
未定义
的
属性
“”
setState
“”
、
这真的是个新手,我试着看过其他
的
例子,但是没有任何意义,所以任何帮助都将不胜感激!我正在尝试做
的
是有一个简单
的
文本字段和提交按钮,将添加电子邮件地址到MailChimp活动列表。所以只有一个简单
的
(理论
上
)邮件注册列表。我一直收到这样
的
错误
: TypeError:
无法
读取
未定义
onChange
的
属性
'
setState
‘:14
浏览 5
提问于2017-08-15
得票数 0
回答已采纳
1
回答
未登录
的
TypeError:
无法
读取
属性
“目标”
未定义
TypeError:
无法
读取
未定义
属性
的
“目标” handlePortfolioChange = data => (event) => { this.
setState
({ selectedPortfolio: event.target.value });实际SelectBox onChange={e =
浏览 1
提问于2020-03-29
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
源码分析 Flutter 的 setState 过程
React 状态管理:状态与生命周期
智能合约编写之Solidity的基础特性
智能合约编写之 Solidity 的基础特性
ReactNativeForAndroid架构初探,小伙伴们需要看看这个!
热门
标签
更多标签
云服务器
ICP备案
对象存储
实时音视频
即时通信 IM
活动推荐
运营活动
广告
关闭
领券