简体   繁体   English

如何触发sharethis按钮重新生成?

[英]How do I trigger a sharethis button regen?

I'm changing some of the properties of the sharethis button dynamically, and am looking to cause it to regen. 我正在动态地更改sharethis按钮的一些属性,并且我希望它能够重新生成。 How do I do that? 我怎么做?

depends on the customization you want to do, but if you're just dynamically adding a sharethis button, call 取决于您想要进行的自定义,但如果您只是动态添加sharethis按钮,请致电

stButtons.locateElements();

That will re-run the init code an the sharethis js will do it's magic again. 这将重新运行init代码和共享,这将再次成为魔术。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM