是因为这里没有滚动条所以clientHeight才等于scrollHeight的么,clientHeight应该是仅当前页面内容的高度吧,不知道我理解的对不对
来源:17-8 better-scroll运用(3)

小疯疯
2017-02-10
console.log(item.scrollHeight)
console.log(item.clientHeight)
是一样的结果,因为我第一反正是用scrollHeight结果老师用的clientHeight
写回答
1回答
-
ustbhuangyi
2017-03-10
clientHeight 和 scrollHeight 的区别,建议去看看相关的文章,推荐一篇:http://www.cnblogs.com/yuteng/articles/1894578.html
012019-07-24
相似问题