为什么我设置了滚动条的高度没反应的?

#1

#2

可能是你componentDitMount的时候页面滚动条高度最大值不到500,可以在removeItem之后加个debugger看看这一步页面是怎样子的,并且componentDitMount内是不需要$(document).ready

1 Like