1 Star 0 Fork 0

mengmenghao / 我的个人网站

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
JSON_tab.html 1.73 KB
一键复制 编辑 Web IDE 原始数据 按行查看 历史
mengmenghao 提交于 2020-06-03 16:02 . json
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="referrer" content="no-referrer"/>
<title></title>
<link rel="stylesheet" type="text/css" href="css/tabdemo.css"/>
<script src="js/jquery-3.5.1.js" ></script>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"/>
<script src="js/bootstrap.js"></script>
</head>
<body>
<div class="tabox">
<div class="hd">
<ul>
<li class="on">最近热门电影</li>
<li class=" ">即将上映电影</li>
<li class=" ">电影详情</li>
<li class=" ">热评商品</li>
<li class=" ">新品上架</li>
</ul>
</div>
<div class="container" id="bd">
<ul class="lh row row-cols-3">
</ul>
<ul class="lh row row-cols-3" style="display: none;">
</ul>
<ul class="lh row row-cols-3" style="display: none;">
</ul>
<ul class="lh row row-cols-3" style="display: none;">
</ul>
<ul class="lh row row-cols-3" style="display: none;">
</ul>
</div>
</div>
<script type="text/javascript">
//179000522 廖孟豪
$(function() {
$("li").click(function(){
$(this).addClass("on").siblings().removeClass("on");
// $(".lh").eq($(this).index()).show().siblings().hide();
})
$.ajax({
method:"get",
url:"https://douban.uieee.com/v2/movie/in_theaters",
success:function(date) {
console.log(date);
console.log(date.subjects.length);
for(let i in date.subjects){
$("#bd ul").append(`<li><p style="height:20px;" align="center">电影名:${date.subjects[i].title}</p><br />
<img src='${date.subjects[i].images.large}' height="430px"/></li>`);
}
}
})
})
</script>
</body>
</html>
1
https://gitee.com/mengmeng111/website.git
git@gitee.com:mengmeng111/website.git
mengmeng111
website
我的个人网站
master

搜索帮助

14c37bed 8189591 565d56ea 8189591