Delete fetch.js

This commit is contained in:
amarcel 2024-05-21 08:31:48 +00:00
parent c561c3bb61
commit 9350d6acdc
1 changed files with 0 additions and 14 deletions

View File

@ -1,14 +0,0 @@
const url = "http://localhost/a1/get.php"
//const url = "http://qstack.pl:8080/z1/get.php"
let lista
fetch(url)
.then(response => response.json())
.then(data => {
sortujSufiksy(data)
});
function sortujSufiksy(data) {
data.forEach((element) => document.querySelector('#nieposortowane').innerHTML += `<li> ${JSON.stringify(element.osoby)} </li>`);
}