UPDATE 2 I also tried changing the code from HTML5 to FBML (click "Get Code" on this page to see the difference), which not only had the same result but now also would only load one additional button on the ajax call, instead of two. So it got worse! You can play with the FBML version here: http://jsfiddle.net/pnoeric/4QkbX/2/推荐答案 文档指定dom元素应为root DOM node, defaults to body.因此,我用创建的DOM元素对.parse方法的单个调用替换了.each函数调用.这是 jsfiddle .The docs specifies that the dom element should be root DOM node, defaults to body. So I replace.each function call with a single call to a .parse method with the created DOM element. Here is a jsfiddle. FB.XFBML.parse($newhtml[0]); 注意:应该在窗口小部件的父元素上而不是在XFBML元素本身上直接调用FB.XFBML.parse().Note: FB.XFBML.parse() should be called on a parent element of the widget, not directly on the XFBML element itself. 这篇关于单个元素上的FB.XFBML.parse()不执行任何操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-24 17:06
查看更多