Answer the question
In order to leave comments, you need to log in
How to fix ajax issue?
My router:
router.get('/getlist', function(req, res) {
console.log('got a request!')
res.send('somedata');
res.end()
})
$.ajax({
url: '/router/getlist',
success: completeHandler
});
function completeHandler(){
console.log('sucsess')
}
console.log()
does not work in the console, but the client outputs sucsess
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question