这在Chrome和Firefox中有效,但是在IE中调用带有"?jsoncallback?"后缀的.getJSON失败,并显示"无传输"错误。
任何关于这是否有效的经验,都将不胜感激。
谢谢。
Internet Explorer似乎有更严格的跨域策略,以防止在没有正确设置回调的情况下使用。
如果将 "jsoncallback" 替换为 ?callback=,则跨域调用将起作用。
看这里: https://stackoverflow.com/a/9803766/1254222