【发布时间】:2021-12-20 21:27:04
【问题描述】:
所以这是我的代码,我有这个错误,我不明白为什么。我需要一些帮助...我不知道为什么会这样:Property does not exist on type '.js--section-plan'.ts(2339) 当我将鼠标悬停在 vscode 中的 offset() 上时
$('.js--scroll-to-plans').click(function()
{ $('html, body).animate({scrollTop:.
('.js--section-
plan').offset().top},1000) });
【问题讨论】:
-
您的代码实际上是写
$('html, body)而不是$('html, body'),还是只是问题上的拼写错误?
标签: javascript jquery css offset scrolltop