R
R
ratatyq2016-04-11 17:36:42
JavaScript
ratatyq, 2016-04-11 17:36:42

How to process data received via ajax?

Hello, I am sending page data to the server js, it says that the data has been sent, but how to accept and process it in js?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Litvinenko, 2016-04-11
@edli007

Just like on a regular server.
Put some kind of framework, express for example, and then
router.get('/events', function(req, res, next) {
// ..
});
expressjs.com/en/4x/api.html#router

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question