-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlist.html
More file actions
32 lines (32 loc) · 919 Bytes
/
list.html
File metadata and controls
32 lines (32 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html>
<head>
<title>Untitled Document</title>
<meta charset="UTF-8">
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="viewport" content="width=device-width" />
</head>
<body>
<h3><a href="index.html">返回</a><span></span></h3>
<ul>
</ul>
</body>
<script src="js/jquery.min.js"></script>
<script src="js/test.js"></script>
<script>
$.ajax({
url:'json/list.json',
success:function(data){
var str='';
var date = data.key.split('-');
// console.log(date);
$(data.datas).each(function(key,value){
str += "<li><a href='page.html'>" + value + "</a></li>";
});
$('h3 span').html(data.key);
$(str).appendTo($('ul'));
}
});
</script>
</html>