jQuery IE问题,YQL代理
我这里有问题。
我正在使用 YQL 和jQuery 获取一些数据; 是我的快速代码: http://jsfiddle.net/corotchi/22Ecw/
这 在 IE 中不起作用,我猜任何版本都行。
错误 :
SCRIPT5:访问被拒绝。
jquery-1.4.3.min.js,第 137 行字符 406
,我们可以在jsFiddle中看到,FF显示数据,IE不显示。任何人有任何建议或任何想法我该如何解决这个问题?
附言。我正在使用 jQuery 1.4.3。
I have a problem here.
I am using YQL & jQuery to get some data; this is my quick code: http://jsfiddle.net/corotchi/22Ecw/
It doesn't work in IE, I guess any version.
Error :
SCRIPT5: Access is denied.
jquery-1.4.3.min.js, line 137 character 406
And we can see in jsFiddle, FF displays data, IE doesn't. Anyone have any advice or any idea how can I fix this?
PS. I am using jQuery 1.4.3.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信您需要使用
JSONP
。以下适用于 IE9(并且似乎适用于 IE7 和 IE8);请注意 jQuery 将处理的callback=?
。http://jsfiddle.net/22Ecw/6/
I believe you need to use
JSONP
. The following works in IE9 (and appears to work in IE7 and IE8); note thecallback=?
, which jQuery will handle.http://jsfiddle.net/22Ecw/6/