How to render a plugin added dynamically?

后端 未结 3 1484
梦毁少年i
梦毁少年i 2021-01-26 09:21

This is my code :

HTML

3条回答
  •  暖寄归人
    2021-01-26 09:27

    This should do the job:

    FB.XFBML.parse( document.getElementById("newFBContent"), function() {
        //plugin rendered
    });
    

    You should call FB.XFBML.parse after you've added the new content to the DOM.

提交回复
热议问题