ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 幻灯片 参考文档: [http://www.swiper.com.cn/api/basic/2014/1213/16.html](http://www.swiper.com.cn/api/basic/2014/1213/16.html) [TOC] ![](https://box.kancloud.cn/93177f397df3631b8e9bc1786654ea0e_612x316.png) [查看演示效果](http://hdjstest.hdphp.com/test/swiper.html) ## 使用 ``` <div class="swiper-container"> <div class="swiper-wrapper"> <div class="swiper-slide"> <img src="http://oss.hdcms.com/1502963276236c0417.jpg"> </div> <div class="swiper-slide"> <img src="http://oss.hdcms.com/150183869614d9919.jpg"> </div> <div class="swiper-slide"> <img src="http://www.houdunwang.com/attachment/69661487768411.jpg"> </div> </div> <!-- 如果需要分页器 --> <div class="swiper-pagination"></div> <!-- 如果需要导航按钮 --> <div class="swiper-button-prev"></div> <div class="swiper-button-next"></div> </div> <style> .swiper-container { width: 600px; height: 300px; } </style> <script> require(['hdjs'], function (hdjs) { hdjs.swiper('.swiper-container', { loop: true, //自动轮换 autoplay: { delay: 1000, }, //如果需要分页器 pagination: { el: '.swiper-pagination', clickable: true }, //如果需要前进后退按钮 navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, }) }) </script> ```