L
L
leonardogun2019-11-01 17:53:32
AJAX
leonardogun, 2019-11-01 17:53:32

Getting all received data ajax data?

Good day!
Is there a way to pull out all the information that came in in the success data in ajax?
For example, the answer was in data["lol"] and data["lo2"]
So, without knowing these variables, how can I extract everything that came in?
like:
success: function(data) {
alert(data[all]); // Where all is everything that came in
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2019-11-01
@leonardogun

success: function(data) {
console.log(data); 
}

Read what JSON is and how to parse it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question