R
R
raycheel2015-08-12 22:42:38
JavaScript
raycheel, 2015-08-12 22:42:38

How to populate window.data with data?

Hello! There is data that comes as an ajax response in json format: It is
var data = JSON.parse(response);
necessary to fill the window.data object with this data, how to do it?

window.data = {
            "uuid": "",
            "title": ""
     .......
    };

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Melnikov, 2015-08-13
@mlnkv

window.data = JSON.parse(response);

H
heartdevil, 2015-08-13
@heartdevil

Hello
And in your case window has data?
Or maybe you meant this:
$(window).data(сюда кладем объект)?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question