添加bar标识ID
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -2,7 +2,7 @@ layui.use('carousel', function () { | ... | @@ -2,7 +2,7 @@ layui.use('carousel', function () { |
2 | var carousel = layui.carousel; | 2 | var carousel = layui.carousel; |
3 | //建造实例 | 3 | //建造实例 |
4 | carousel.render({ | 4 | carousel.render({ |
5 | elem: '# ' | 5 | elem: '#banner_swiper' |
6 | , width: '100%' //设置容器宽度 | 6 | , width: '100%' //设置容器宽度 |
7 | , arrow: 'always' //始终显示箭头 | 7 | , arrow: 'always' //始终显示箭头 |
8 | , autoplay: true | 8 | , autoplay: true |
... | @@ -31,7 +31,7 @@ layui.use('util', function () { | ... | @@ -31,7 +31,7 @@ layui.use('util', function () { |
31 | 31 | ||
32 | //初始化方法 | 32 | //初始化方法 |
33 | $(function () { | 33 | $(function () { |
34 | NewsData(); | 34 | // NewsData(); |
35 | addTabs('#index') | 35 | addTabs('#index') |
36 | }); | 36 | }); |
37 | 37 | ... | ... |
-
Please register or sign in to post a comment