作用:该组件用于在在一块区域展示多块内容,如果只有一张图片,则直接显示一张图片
依赖:依赖seamless-carousel.css
参数:new Carousel(obj1, {haspagination : true,hasButton : true, durtutionTime:3000}); 1.obj(必须): 为要绑定该组件的dom元素;2.haspation(可选):默认为true,显示下面的小圆点,设为flase,不显示小圆点; 3.hasButton(可选): 默认为flase,不显示两边的左右点击按钮,设为true,则显示; 4 durtionTime(可选):默认为3000,每隔多长时间切换
兼容:IE8+