如何触发sharethis按钮再生? [英] How do I trigger a sharethis button regen?

查看:148
本文介绍了如何触发sharethis按钮再生?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在动态更改sharethis按钮的某些属性,并希望使其重新生成.我该怎么办?

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?

推荐答案

取决于您要进行的自定义,但是如果您只是动态添加sharethis按钮,请调用

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

stButtons.locateElements();

这将重新运行init的初始化代码,此js将再次使它变得神奇.

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

这篇关于如何触发sharethis按钮再生?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆