1

Firefoxjsファイルが動的に含まれている場合、LinkedInのソーシャル共有リンクはで機能しません。

こちらのオンライン問題デモをご覧ください。

Facebook、Twitter、リンクされた共有リンクを含む次のHTMLがあります。

<a id="FBshare_{{MashupId}}" name="fb_share" type="box_count" share_url="http://google.com"></a>
&nbsp;
<a id="TWshare_{{MashupId}}" href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-url="http://google.com">Tweet</a>
&nbsp;
<script data-counter="top" type="in/share" data-url="http://google.com"></script>

そして次のjavascriptコード:

// this script just does not work, I dont know why.
$.getScript("http://platform.linkedin.com/in.js");

$.getScript("http://static.ak.fbcdn.net/connect.php/js/FB.Share");

$.getScript("http://platform.twitter.com/widgets.js");

しかし、何らかの理由でリンクされたスクリプトが機能せず、リンクされた共有リンクが表示されません。

どんな助けでもいただければ幸いです。

4

1 に答える 1

0

jsFiddle のリンクされたコードは、Firefox で完全に機能しています。Firefox を最新バージョンに更新してみてください。私のはv8.0です

于 2012-01-05T00:20:08.337 に答える