代码拉取完成,页面将自动刷新
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>瀑布流响应式布局</title>
<link rel="stylesheet" type="text/css" href="swiper-3.4.2.min.css">
<style type="text/css">
/*li*/
/*注释哦1*/
.swiper-container {
width: 600px;
height: 300px;
}
</style>
</head>
<body>
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide">Slide 1</div>
<div class="swiper-slide">Slide 2</div>
<div class="swiper-slide">Slide 3</div>
<div class="swiper-slide">Slide 3</div>
<div class="swiper-slide">Slide 3</div>
<div class="swiper-slide">Slide 3</div>
<div class="swiper-slide">Slide 3</div>
<div class="swiper-slide">Slide 3</div>
<div class="swiper-slide">Slide 3</div>
<div class="swiper-slide">Slide 3</div>
</div>
<!-- 如果需要分页器 -->
<div class="swiper-pagination"></div>
<!-- 如果需要导航按钮 -->
<div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div>
<!-- 如果需要滚动条 -->
<div class="swiper-scrollbar"></div>
</div>
</body>
<script type="text/javascript" src="swiper-3.4.2.min.js"></script>
<script>
function test(){
var a = 10
function fn(){
console.log(a);
console.log("123");
}
return fn;
}
var f1 = test()
var f2 = test();
function test(){
var a = 10;
function f1(){
console.log(a)
}
function f2(){
console.log(a);
}
return [f1, f2];
}
var farr = test();
var f1 = farr[0];
var f2 = farr[1];
var mySwiper = new Swiper ('.swiper-container', {
initialSlide:1,
direction: 'vertical',
loop: true,
// 如果需要分页器
pagination: '.swiper-pagination',
// 如果需要前进后退按钮
nextButton: '.swiper-button-next',
prevButton: '.swiper-button-prev',
// 如果需要滚动条
scrollbar: '.swiper-scrollbar'
})
</script>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。