此滚动切换注册了所有可用的回调函数,并显示了列表项和按钮的信息。另外,此滚动传送的宽度设为了auto。改变浏览器窗口大小看看会有什么事情发生。
1: Carousel initialised
2: Next button is now disabled
3: Prev button is now disabled
4: Next button is now enabled
5: Item #1 is now the first item
6: Item #1 is now the last item
7: Item #1 is now visible