我正在构建一个 ASP.NET 网站,我对一页的行为感到困惑,我有一个长表单和一个提交按钮,我在页面下面有一段 javascript 来处理页面滚动在提交表单时备份,第一次单击提交按钮时它工作所有后续单击根本不起作用,知道为什么吗?
<script type="text/javascript">
$(".thebutton").click(function(){
$("html, body").animate({scrollTop: 200}, 1000);
});
</script>
干杯,蒂