加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
test.html 2.07 KB
一键复制 编辑 原始数据 按行查看 历史
<!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>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化