-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage.html
More file actions
29 lines (29 loc) · 804 Bytes
/
page.html
File metadata and controls
29 lines (29 loc) · 804 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
<!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></h3>
<div class="content"></div>
<script src="js/jquery.min.js"></script>
<script src="js/test.js"></script>
<script>
$.ajax({
url:'json/page.json',
success:function(data){
// console.log(data.date);
$(data.date).appendTo('h3');
$('h3').html(data.date);
// $(data.date).append($('h3');
$(data.content).appendTo('.content');
$('.content').html(data.content);
}
});
</script>
</body>
</html>