Answer the question
In order to leave comments, you need to log in
Why does the jQuery request always get a different value?
Hello, I ran into this problem when writing a web client:
I access the server like this:
$.post('/data', {
act: 'send'
}, function (p) {
console.log(p)
})
Answer the question
In order to leave comments, you need to log in
Try sending data via
$.ajax() instead of post. Specify
the data type in json format.
Just sending large post and get requests, the data has a size limit, so some of the data (post, get lines) may be cut off.
To test this theory, send a 10 character test message and see if your code works?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question