Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const url = "adresAPI";
- function pobierzCzas() {
- let xmlHttp = new XMLHttpRequest();
- if (xmlHttp == null) return null;
- xmlHttp.open("GET", url, false);
- xmlHttp.send(null);
- let czas = JSON.parse(xmlHttp.responseText);
- }
- window.setInterval(pobierzCzas, 3000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement