I have an Ajax application using jQuery 1.5.1. At a certain point in time, I do a Ajax call, posting '???' as an argument. To my surprise, the value that is read by the server is something like 'jQuery15101472...'.
In the Firebug console, I see that the value posted to the server is already 'jQuery15101472...' in the serialized json request.
How is this possible?
It's jQuery bug #8417, a recent regression related to its JSON-P handling (which it incorrectly applies even if you're not using JSON-P). More information and a workaround in this other answer. The bug is fixed in the source repo and slated to be released as part of v1.6.0.
精彩评论