Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一组从 DOM 中动态添加和删除的共享按钮。我不想在每次添加其中一个时都告诉 addthis 来“初始化”,而是想有一种方法来做类似的事情:
addthis.openEmailDialog([options]);
这样的事情可能吗?
如果您已经加载了 AddThis javascript - 您可以将类添加addthis_button_email到<a>链接中:
addthis_button_email
<a>
<a href="#" class="addthis_button_email">Email this page</a>