Sharethis按钮在通过Ajax加载的页面上不起作用 [英] Sharethis button does not work on pages loaded via ajax

查看:99
本文介绍了Sharethis按钮在通过Ajax加载的页面上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在通过ajax加载的页面上使用sharethis按钮. 这些按钮不显示.请帮忙.

I am trying to use the sharethis button on a page which is loaded via ajax. The buttons do not show up. Please help.

关于, 潘卡(Pankaj)

Regards, Pankaj

推荐答案

将新内容添加到dom后,调用

After adding the new content to the dom, call

stButtons.locateElements();

// or if you want to be a bit defensive about whether the lib has been
// loaded or not:
if (window.stButtons){stButtons.locateElements();} // Parse ShareThis markup

文章 查看全文

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