js code:
<script src="http://res.test.com/js/jquery-1.8.3.min.js" type="text/javascript"></script>
- $.getJSON("http://www.test.com/home/gettoken?callback=?", function (token) {
- alert(token);
- });
server side code:
The value of Request["callback"] is "?" . And the alert(token) was not fired.
-----------------------------------------------------------------------------------------------------------------------
But when i changed the js referece:
<script src="~/scripts/jquery-1.8.3.min.js" type="text/javascript"></script>And the others did not changed.
The value of Request["callback"] is "jQuery1830086946128187672_1376444576112" . And the alert(token) was work well !
Why ? Is it a bug?