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.
我想修改代码,以便在页面加载时显示至少 10 个图标。我怎么能在 addThis 上做到这一点?谢谢
HTML:
<div class="addthis_toolbox addthis_default_style "></div>
jQuery:
var totalButtons = 10; for(var i=1;i<=totalButtons;i++){ $('.addthis_toolbox').append('<a class="addthis_button_preferred_'+i+'"></a>'); }
请发布您当前用于 AddThis 小部件的任何代码。