腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
2
回答
TypeError
:
无法
读取
null
的
属性
“
getBoundingClientRect
”
reactjs
我正在尝试创建一个具有粘性效果
的
页眉,但在滚动页面时出现此错误,有时会工作,有时会发生错误。有人能帮我解决这个问题吗? ? EventPage: React.FC = () => { const ref = useRef(
null
); if (ref.current.
getBoundingClientRect
().y <= -58
浏览 54
提问于2020-04-25
得票数 0
回答已采纳
1
回答
问题:
TypeError
:
无法
读取
属性
'
getBoundingClientRect
‘
的
null
javascript
、
html
、
reactjs
、
react-native
、
dom
TypeError
:
无法
读取
属性
'
getBoundingClientRect
‘
的
null
我正在呈现这段代码,例如: <div className="box">Test</div>
浏览 0
提问于2020-11-16
得票数 0
1
回答
Wavify javascript代码在wordpress中不起作用(未捕获
TypeError
:
无法
读取
null
的
属性
'
getBoundingClientRect
‘)
javascript
、
wordpress
目前我在wordpress中实现了TweenMax来使用wavify,但是没有捕获到
TypeError
:
无法
读取
null
的
属性
'
getBoundingClientRect
‘。输出错误,原因未知。输出错误“未捕获
TypeError
:
无法
读取
null
的
属性
'
getBoundingClientRect
‘”。有没有什么可能
的<
浏览 21
提问于2020-05-04
得票数 0
回答已采纳
1
回答
根据元素本身
的
位置有条件地改变元素
的
样式。
reactjs
、
jsx
、
use-ref
、
getboundingclientrect
我试图根据元素本身
的
位置更改其不透明度(仅当其大于500 if时才显示出来): const card = useRef(
null
); <li style={{opacity: 500 > card.current.
getBoundingClientRect
1 : 0}} <img
浏览 4
提问于2022-09-08
得票数 -1
2
回答
无法
读取
null
的
属性
“
getBoundingClientRect
”
reactjs
我得到这个错误:Cannot read property '
getBoundingClientRect
' of
null
。我使用这个函数
getBoundingClientRect
,因为在我
的
项目中,我希望有以下效果:在一个元素被高亮显示
的
时刻,其余
的
元素具有不同
的
样式。该消息显示了函数handleScroll。我使用
的
组件如下所示 constr
浏览 0
提问于2019-01-04
得票数 5
1
回答
使用useeffect和useref
TypeError
:
无法
读取
null
的
属性
'
getBoundingClientRect
‘时出错
javascript
、
reactjs
、
react-hooks
、
use-effect
、
use-ref
你好,我
的
用户出了问题,我
的
应用程序继续从我不再在
的
页面
读取
代码。().top) && window.scrollY < (window.pageYOffset + divRef2.current.
getBoundingClientRect
().bottom)) {().top) && window.scrollY < (window.pageYOffset + divRef3.current.
getBoundingClientRect
().b
浏览 1
提问于2020-11-19
得票数 0
回答已采纳
2
回答
无法
读取
角度中
null
的
属性
“”
getBoundingClientRect
“”
html
、
angular
、
getelementbyid
、
getboundingclientrect
、
offsetheight
我正在尝试使用
getBoundingClientRect
().height或this.elementView.nativeElement.offsetHeight获取这个<div class="bundles-wrapenterprise"元素
的
像素高度。这是我
的
HTML: <!>{{valu
浏览 10
提问于2021-07-15
得票数 0
2
回答
TypeError
:
无法
读取
未定义
的
属性
(
读取
“
getBoundingClientRect
”)
javascript
、
reactjs
、
frontend
我一直得到错误
TypeError
:
无法
读取
未定义(
读取
'
getBoundingClientRect
')
的
属性
,并且不知道原因。card-item'; { let distance =ref.current.
getBoundingClientRect
浏览 2
提问于2021-10-06
得票数 1
1
回答
forEach使用索引获取下一项
javascript
、
foreach
我试图得到下一个元素,因为我需要这个元素
的
位置来绘制一条将两者连接起来
的
线。我得到
的
错误消息是未定义
的
TypeError
:
无法
读取
未定义
的
属性
(
读取
'
getBoundingClientRect
') Array.from(timeslot
浏览 8
提问于2022-07-19
得票数 -2
2
回答
TypeError
:
无法
读取
null
的
属性
“”
TypeError
“”:
无法
读取
null
的
属性
“”title“”
angular
、
typescript
解码令牌后,我
无法
获得标题和姓氏以在登录时显示它。它给了我错误"cannot read property title of
null
“。任何在这里输入代码的人都可以在这方面帮助我。console.log(decodedToken); } return
null
浏览 9
提问于2019-09-30
得票数 0
回答已采纳
1
回答
使用responsiveness响应pdf响应,但是当增加或减小窗口大小时,我得到了这个
TypeError
javascript
、
reactjs
、
react-hooks
、
react-pdf
PDFWrapper({ data, onDocumentLoadSuccess, pageNumber }) { setInitialWidth(pdfWrapper.current.
getBoundingClientRect
注意:
TypeError
:
无法
读取
<
浏览 1
提问于2020-09-08
得票数 1
回答已采纳
1
回答
使用鼠标坐标制作动画时
的
requestAnimationFrame
javascript
、
canvas
动画函数,将被调用使用requestAnimationFrame(动画),但在动画函数中,我调用is_inside,当它发生
的
时候,我得到一个错误
的
is_inside函数,当我想得到wx和wy :未捕获
TypeError
:
无法
读取
属性
'clientX‘
的
未定义任何想法如何解决这个问题?谢谢 targetX = event.clientX - canvas.
getBoundingClientRe
浏览 11
提问于2016-08-07
得票数 2
回答已采纳
1
回答
错误
TypeError
:
无法
读取
null
的
属性
'querySelectorAll‘,错误
TypeError
:
无法
读取
null
的
属性
'getElementsByTagName’
angular
、
angular10
to download }; 我正在尝试打印csv和xml
的
按钮点击,但它给了我以上
的
错误,我不知道为什么它告诉我喜欢this.can有人帮助我做这个 我使用
的
是angular 9 "ngx-export-as":"^1.5.0",
浏览 17
提问于2021-01-29
得票数 0
1
回答
使用ref获取组件位置时出错(ReactCannot
读取
属性
'
getBoundingClientRect
‘of
null
")
javascript
、
reactjs
、
ref
、
use-ref
、
scroll-position
我想得到技能组件
的
位置,并在滚动到那个点时添加一个动画。然而,它返回一个错误"
TypeError
:
无法
读取
属性
'
getBoundingClientRect
‘
的
null
“。Card;const Skills = () => { const topPos = ref.current.
getBoundingClientRect</em
浏览 5
提问于2021-09-10
得票数 0
回答已采纳
1
回答
添加两个数字,其中每个数字是在一个链表中
的
反向顺序。
javascript
、
algorithm
、
data-structures
、
linked-list
我能够得到正确
的
数字,但不能返回
的
答案作为一个反向链接列表。有人能帮我找到代码中
的
错误并完成最后一步吗? this.val = val; this.next =
null
浏览 2
提问于2019-03-29
得票数 1
回答已采纳
1
回答
TypeError
:
无法
读取
null
属性
(
读取
“密码”)
node.js
、
mongodb
、
express
res.send('User yet created') }}) 在这个简单登录和注册系统
的
代码中,我采用了在密码输入中输入
的
内容,并以将其插入DB
的
方式使用它。node:events:368 ^
TypeError
: Cannot read propert
浏览 7
提问于2022-07-06
得票数 0
1
回答
TypeError
:
无法
读取
null
属性
(
读取
'writeValue')
angular
、
angular-reactive-forms
、
angular-controlvalueaccessor
=
null
"> <input type="text" class="form-control复选框
的
属性
是布尔
属性
。
浏览 2
提问于2022-07-19
得票数 0
2
回答
TypeError
:
无法
读取
null
属性
(
读取
'id')
discord.js
因此,我正在更新我
的
机器人到discord.js v13,显然我
的
日志系统现在已经坏了,由于某种原因,它
无法
读取
这个日志正在发生
的
公会
的
ID。guild) { guildId: guild.id, msgChannel:
null
浏览 2
提问于2021-09-14
得票数 1
回答已采纳
1
回答
TypeError
:
无法
读取
null
属性
(
读取
“长度”)
javascript
、
node.js
、
reactjs
、
typescript
、
visual-studio-code
( _a = resume.profession) ===
null
\x_a === ===0?无效0:_a.length)?PREMIAÇÕES: ${awardsText(resume)};157个回教+作业+语言+附加;158 \x} 在Windows上运行时,将根据白名单检查文件名,以防止远程代码执行攻击。((_a = resume.profess
浏览 6
提问于2021-12-16
得票数 -3
1
回答
TypeError
:
无法
读取
null
属性
(
读取
'createEvent')
reactjs
、
jestjs
、
react-testing-library
我编写了一个简单
的
测试用例,它检查了鼠标悬停在反应性组件上
的
工具提示值。react-dom.development.js:3905 ^ at Object.invokeGuardedCallbackDe
浏览 13
提问于2022-10-20
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
ES6 对象都新增了哪些属性
一篇搞定前端高频手撕算法题(36道)
一文看懂PHP 8的新特性
PHP8还有半年就要来了,来看看有哪些新特性
PHP 8:类型系统改进
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券