How can i rerender Pinterest's Pin It button?

前端 未结 13 2146
暖寄归人
暖寄归人 2021-01-30 18:14

I\'m trying to create and manipulate the Pin It button after page load. When i change the button properties with js, it should be rerendered to get the functionality of pinning

13条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-30 18:43

    To render a pin-it button after a page has loaded you can use:

    
        
    
    
    

    Assuming of course the assets.pinterest.com/js/pinit.js is already loaded on the page. The render object has some other useful methods like buttonBookmark, buttonFollow, ebmedBoard, embedPin, embedUser.

提交回复
热议问题