回答編集履歴

1

ソース変更。こっちの方がイイと・・

2018/10/08 08:12

投稿

miyakichi
miyakichi

スコア297

test CHANGED
@@ -1,23 +1,19 @@
1
- イベント登録してみればどうかな?
2
-
3
1
  ```javascript
4
2
 
5
- <script>
3
+ <script>
6
4
 
7
- window.addEventListener('DOMContentLoaded', function() {
5
+ var swiper = new Swiper ('.swiper-container', {
8
6
 
9
- var swiper = new Swiper('.swiper-container', {
7
+ loop: true,
10
8
 
11
- nextButton: '.swiper-button-next',
9
+ paginationClickable: true,
12
10
 
13
- prevButton: '.swiper-button-prev',
11
+ nextButton: '.swiper-button-next',
14
12
 
15
- loop: true
13
+ prevButton: '.swiper-button-prev',
16
14
 
17
- });
15
+ });
18
16
 
19
- }, false);
20
-
21
-   </script>
17
+ </script>
22
18
 
23
19
  ```