腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
读取
包装在
promise
中
的
对象
的
属性
的
正确方法是什么?(获取
TypeError
)
javascript
、
node.js
、
asynchronous
、
async-await
、
es6-promise
我有一个异步函数,它从API
中
获取json,然后用Node.js返回它。
在
调用函数
中
,我将其赋值给一个变量,然后将其他变量赋值给它
的
属性
,并从中构建一个对象。但是,同时,每次我这样做时,它都会抛出错误, Uncaught (in
promise
)
TypeError
: Cannot read property 'propertyOfInner' of undefined即使它显然成功地
读取
了该
属性
。
读取</
浏览 39
提问于2019-04-18
得票数 0
回答已采纳
1
回答
无法
读取
未定义
的
属性
“”asObservable“”
angular
、
typescript
、
observable
我正在一个JSON API上构建一个搜索函数,我得到了这个错误: 错误:
未
捕获
(
在
promise
中
):
TypeError
:
无法
读取
未定义
的
属性
'asObservable‘ 我不熟悉angular,似乎找不到问题所在searchResult: Product[]; private productService:ProductService,
浏览 26
提问于2019-06-02
得票数 1
回答已采纳
2
回答
在
react
中
捕获
异步axios调用
的
响应
html
、
reactjs
、
async-await
、
axios
JSON.stringify(data) this.setState({ refNo: res.data.reference })) } 我不能设置从请求
中
得到
的
我想要
捕获
响应,并更改组件
中
的
state.function。下面的错误出现在页面的控制台中,在此之后我得到了一个白色页面。react_devtools_backend.js:6
TypeError
:
无法
读取
未定义</em
浏览 32
提问于2020-04-19
得票数 0
2
回答
React表获取问题
TypeError
:
无法
读取
未定义
的
属性
“”forEach“”
javascript
、
react-table
从今天早上开始,
在
构建了最新
的
node_modules之后,我们开始讨论下面的问题:
在
ReactTable.getDataModel (methods.js?
浏览 0
提问于2019-12-04
得票数 3
1
回答
在
angular web应用程序
中
刷新grunt服务时出现Chrome浏览器错误
javascript
、
angularjs
、
node.js
、
gruntjs
、
bower
未
捕获
的
TypeError
:
无法
读取
未定义
(匿名函数)
的
属性
'noop‘@ angular-animate.js:9 (匿名函数)@angular-animate.js:3721 angular-cookies.js:24
未
捕获
TypeError
:
无法
读取
未定义
(匿名函数)
的
属性
浏览 0
提问于2015-08-21
得票数 0
0
回答
未
捕获
(
在
promise
中
):
TypeError
:
无法
读取
未定义
的
属性
“
router
”
javascript
、
angular
、
firebase
我正在尝试使用firebase服务更新/编辑资源,
在
更新/编辑时,我希望将其发送回listing组件。this.firebaseService.updateListing(this.id, listing);foll是我
在
第一种方法
中
得到
的
错误: Uncaught (in
promise
):
TypeError
: Cannot read
浏览 2
提问于2017-06-13
得票数 2
2
回答
如何在require.js中使用hammer.js插件
requirejs
、
hammer.js
我正在尝试
在
require.js中使用hammer.js插件,但我没有运气。Hammer.plugins.showTouches(); }});
未
捕获
的
插件:
无法
读取
未定义
的
hammer.showtouches.js:7
的
属性
“”
TypeError
“” <e
浏览 1
提问于2013-09-05
得票数 4
2
回答
Angular 2
未
捕获
(in
promise
):
TypeError
:
无法
读取
未定义
的
属性
“”isActivated“”
angular
、
angular2-routing
、
angular2-template
如果我返回到同一路由路径,则会显示错误但不是第一次出现。有人能帮我吗?component: PageNotFoundComponent }组件i
浏览 0
提问于2016-10-10
得票数 10
1
回答
Angular 2测试错误
无法
读取
未定义
的
属性
“”forEach“”
javascript
、
angular
、
testing
、
utilities
我正在尝试测试一个component.ts:import { Location }Jsonp }) .then(createComponent);我收到错误:失败:
未
捕获
(
在
承诺
中
):错误:错误
在
:0:0原因:
无法</em
浏览 4
提问于2016-12-08
得票数 0
1
回答
Angular
中
的
视频-
TypeError
问题
angular
、
typescript
、
html5-video
我正在尝试用Angular做一些基本
的
视频流工作。我
的
代码如下。挑战是我不断得到和错误地说...错误错误:
未
捕获
(
在
promise
中
):
TypeError
:
无法
读取
未定义
视频
的
属性
‘
TypeError
’:
无法
读取
未定义
视频
的
属性
‘video 如有任何建议,我
浏览 15
提问于2019-04-02
得票数 0
回答已采纳
1
回答
无法
读取
"PreventDefault()“和dataTransfer()
javascript
即使我
在
调用函数时传递事件,并使用该事件调用"preventDefault()“和"dataTransfer.setData()",我仍然
无法
获得结果,chrome显示”
未
捕获
TypeError
:
无法
读取
未定义
的
属性
'preventDefault‘“和”
未
捕获
的
TypeError
:
无法
<e
浏览 1
提问于2014-09-14
得票数 0
1
回答
‘'Uncaught :
在
将turn js与angular集成时,
无法
读取
未定义
turn.js:1798
的
属性
'disabled’错误
jquery
、
angularjs
、
turnjs
我正在尝试
在
我
的
angular应用程序中使用turn.js实现翻页效果。当我尝试导航到应用程序
中
的
其他视图时,遇到以下错误。
未
捕获
的
TypeError
:
无法
读取
未定义
的
turn.js:1798
的
属性
“disabled”
未
捕获
的
TypeError
:
无法
浏览 10
提问于2014-04-05
得票数 1
3
回答
在
角度2
中
导航按钮点击时出错
angular
、
asp.net-mvc-5
我正在尝试使用按钮点击
的
navigateurl
属性
,但它似乎被损坏了。我得到了下面的错误:
TypeError
: Cannot read prop
浏览 0
提问于2017-11-23
得票数 1
2
回答
JQuery数据表就绪事件?
jquery
、
filter
、
datatable
是否存在在datatable完成呈现时触发
的
事件?即当我可以开始修改HTML输出时。我正在尝试
在
列标题上添加一行<select>,如上
的
示例所示$('table#id thead tr th').each(function() { ... }) 我相信这是因为传递给each<em
浏览 0
提问于2011-03-23
得票数 9
2
回答
IONIC 4: content.scrollToPoint出现错误,因为
无法
读取
null
的
属性
“”scrollTop“”
ionic-framework
、
ionic4
我使用scrollToPoint滚动到我
的
组件
中
的
特定点,如下所示。IonContent) content: IonContent; 但是它给出了一个错误,比如 错误:
未
捕获
(
在
promise
中
):
TypeError
:
无法
读取
null
的
属性
'scrol
浏览 83
提问于2019-03-25
得票数 0
1
回答
我收到错误,因为
未
捕获
TypeError
:
无法
读取
未定义
的
属性
'use‘
javascript
、
vue.js
、
frameworks
未
捕获
的
TypeError
:
无法
读取
未定义
的
属性
“”use“”
浏览 12
提问于2021-07-17
得票数 0
1
回答
如何
捕获
未
捕获
的
typeerror
:
无法
读取
未定义
的
属性
“”datatable“”。“”错误
javascript
、
google-maps
、
typeerror
、
typeof
、
adblock
当我关闭Google API时,我得到一条“
未
捕获
的
TypeError
:
无法
读取
未定义
的
属性
'DataTable‘”
的
消息。我想捕捉这个
未定义
的
错误,并弹出一个窗口,上面写着"Google已被禁用“,但我不确定什么类型
的
对象是
未定义
的
。我目前正在检查"DataTable“对象,但我非常确定这是错误<
浏览 8
提问于2017-07-28
得票数 0
回答已采纳
1
回答
Google Map Api Marker
未
与Reactjs一起显示
google-maps
、
google-maps-api-3
、
google-maps-markers
、
reactjs
、
react-jsx
我正在尝试显示一个带有标记
的
谷歌地图。我正在使用React.js。地图显示
在
正确
的
位置,但标记
未
显示,并且我
在
浏览器控制台中收到多个'object is not extensible‘错误/** @jsx React.DOM */this.initialize(); render:function(){ return <div className="map"/
浏览 1
提问于2014-04-29
得票数 2
1
回答
在
googledrive
中
托管sencha touch应用程序时出错
sencha-touch-2
、
web-hosting
当我尝试
在
googledrive
中
托管我
的
应用程序时,收到一个错误,只是闪屏并继续使用加载器闪烁未能加载资源: net::ERR_NAME_NOT_RESOLVED bootstrap.js:11
未
捕获
TypeError
:
无法
读取
未定义
的
app.js:13
未
捕获
TypeError
的
属性
'addClassP
浏览 0
提问于2015-10-14
得票数 0
1
回答
未将angular2
未
捕获
的
ReferenceError要求定义为"boot.ts“
typescript
、
angular
我密切关注Angular2快速入门,但
无法
使其正常工作。我得到
未
捕获
的
拆分:
无法
读取
未定义
的
属性
‘
TypeError
’这是我
的
代码。 谢谢,鲍勃
浏览 0
提问于2016-01-18
得票数 1
点击加载更多
热门
标签
更多标签
云服务器
对象存储
ICP备案
云点播
腾讯会议
活动推荐
运营活动
广告
关闭
领券