应该是数据的结构问题
我也不知道
jQuery对象是一个数据对象,可以通过[index]的方法,来得到相应的DOM对象。
正序也可以啊
讲得真不错
我的理解是滚轮事件会调用scrollTop进行滚动判断执行的
调用初始化函数时错误,
this._initSliderDragEvent();
._bindContScroll();
._bindMousewheel();
如果是连着调用,应该是
this._initSliderDragEvent()
._bindContScroll()
._bindMousewheel();
每个初始函数后面不应该有分号
https://github.com/fangxiangxiang/Custom-Scroll 加了注释和老师讲课笔记的源码