摘要:话说取值习惯用a||b,当0遇上0,这句话就是一句废话!我的问题是这样的:首先页面有滚动条,滚动条位于初始位置(最顶上),然后我点击一个按钮,缓动到底部,这个时候,就会发生见鬼的0与0的对决。//jQuery代码function toBottom(){ var el = null, scrollHeight = Math.max(document.body.scrollHeight,document.documentElement.scrollHeight), clientHeight = Math.min(document.documentElement.clientHeight, do..
阅读全文