增加文章最后修改日期,并且准备转向前端请求,并非后端模板的想法
This commit is contained in:
33
static/new_page/home.html
Normal file
33
static/new_page/home.html
Normal file
@@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<!-- <!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
fetch('https://open-ww3-project.ww3.tw/api/s/get/logs/')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
const textContent = JSON.stringify(data, null, 2);
|
||||
str = textContent
|
||||
arrayStr = JSON.parse(str)
|
||||
arr = arrayStr.map(obj => obj.content)
|
||||
document.write(arr)
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html> -->
|
||||
Reference in New Issue
Block a user