开发者

Why is string '??' replaced by 'jQuery15101472...' during ajax call using json and jquery [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit th开发者_JS百科e help center. Closed 11 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜