JQuery с jsonJquery

Программирование на jquery
Anonymous
JQuery с json

Сообщение Anonymous »

У меня есть следующий файл кода JSON с именем:sections.json

{
"section1": { "priority": 1, "html": '
Изображение
'},
"section2": { "priority": 2, "html": ''},
"section3": { "priority": 3, "html": 'Some text'},
"section4": { "priority": 4, "html": 'Some text'},
"section5": { "priority": 5, "html": 'option1 option2'}
}


Я пробую это в коде jquery, но оповещение не работает

$.getJSON("sections.json", function(json) {
alert('h');
});


Подробнее здесь: https://stackoverflow.com/questions/249 ... -with-json

Вернуться в «Jquery»