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.