Это мой код:
Код: Выделить всё
$.ajax({
url: "some_url/",
type: "GET",
dataType: "json",
success: function(data){
console.log(data);
data.forEach(function(element){
console.log(element);
});
}
});
Код: Выделить всё
dataКод: Выделить всё
dataКод: Выделить всё
[{"model": "app.mdl", "pk": 1, "fields": {"name": "test", "rank": 1}}]EDIT:
Код: Выделить всё
dataКод: Выделить всё
JsonResponseИсточник: https://stackoverflow.com/questions/532 ... a-function