PHP
- 2 ответа
- 0 вопросов
1
Вклад в тег
var json = '{"artist":"ALAN WALKER","title":"Ghost"}';
function init(){
let _json = JSON.parse(json);
let artist = document.getElementById('artist');
let title= document.getElementById('title');
artist.innerHTML = _json.artist;
title.innerHTML = _json.title;
setInterval(init,1000)
}
setInterval(init,1000)