gpt4 book ai didi

internet-explorer - Facebook 登录/点赞在 IE8 上失败

转载 作者:行者123 更新时间:2023-11-30 05:19:58 24 4
gpt4 key购买 nike

我最近使用 XFBML 实现了 Facebook 登录按钮和 Facebook“喜欢”按钮。您可以在 http://colnect.com 上查看该站点

一切都适用于 FireFox、Chrome、Opera 和 Safari。

但是,IE 不显示“登录”或“喜欢”按钮,也没有错误消息。

有什么想法吗?

最佳答案

看来我会是那种自己回答希望它能帮助别人的人。

要让 Internet Explorer 识别 Facebook,您应该添加

xmlns:fb="http://www.facebook.com/2008/fbml"

到你的html标签,对我来说是

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xml:lang="en">

我遇到的第二个问题是 IE 不支持 Array.indexOf() 所以解决方法如下:

if(!Array.indexOf){
Array.prototype.indexOf = function(obj){
for(var i=0; i<this.length; i++){
if(this[i]==obj){
return i;
}
}
return -1;
}
}

希望对您有所帮助。

关于internet-explorer - Facebook 登录/点赞在 IE8 上失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3758846/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com