How do I trigger a sharethis button regen?

本小妞迷上赌 提交于 2020-01-14 13:49:28

问题


I'm changing some of the properties of the sharethis button dynamically, and am looking to cause it to regen. How do I do that?


回答1:


depends on the customization you want to do, but if you're just dynamically adding a sharethis button, call

stButtons.locateElements();

That will re-run the init code an the sharethis js will do it's magic again.



来源:https://stackoverflow.com/questions/5036133/how-do-i-trigger-a-sharethis-button-regen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!