How do I render new Twitter widget dynamically?

前端 未结 4 2016
误落风尘
误落风尘 2021-01-05 17:29

If I register a widget on Twitter, I get the following code:



        
4条回答
  •  无人及你
    2021-01-05 17:44

    use

    twttr.widgets.load(); 
    

    if you have loaded //platform.twitter.com/widgets.js already

    In my situation I doing like this: replacing content of some empty or previously timeline filled block to new link like yours

     
    

    then I call twttr.widgets.load(); and twitter do the rest.

提交回复
热议问题