$.getJSON('1.json', function(data) { console.log(data); } ); Should such a script work if the html file in which it is written is in the same folder as 1.json?
$.getJSON('1.json', function(data) { console.log(data); } ); Should such a script work if the html file in which it is written is in the same folder as 1.json?
It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:
First, open DevTools ( Chrome, YandexBrowser, Opera> 12.18, Amigo, Vivaldi and etc on the Chromium engine ) with the F12 key
Source: https://ru.stackoverflow.com/questions/502275/
All Articles