added fetch/get/data.json

This commit is contained in:
bmiast 2025-04-15 07:34:21 +00:00
parent bd3e947ae0
commit 1266726ce7
3 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="js/script.js" defer> </script>
</head>
<body>
Hello
</body>
</html>

View File

@ -0,0 +1,13 @@
function get (url) {
return fetch (url)
.then ( (res) => {
retun res.json()
})
.then (data => {
console.log("ok");
})
}
get ('data/data.json')

View File

@ -0,0 +1 @@
1. Proxy deb 9001<-tcp->9001