4

addthisソーシャルプラグインを使用してURL +パラメーターを共有する方法は?
addthis api を読みましたが、パラメーターを追加するためのホエイが見つかりません。
http://support.addthis.com/customer/portal/articles/381263-addthis-client-api

<!DOCTYPE HTML>
<html lang="en-US">
<head>
    <meta charset="UTF-8">
    <title>hello world</title>
</head>
<body>
    <!-- AddThis Button BEGIN -->
    <div class="addthis_toolbox addthis_default_style ">
    <a class="addthis_button_preferred_1"></a>
    <a class="addthis_button_compact"></a>
    <a class="addthis_counter addthis_bubble_style"></a>
    </div>
    <script type="text/javascript">
    var addthis_config = {
        // I want to share link as this url + my_defined_paramater, how to set?
        url: location.href+'refer_id=1900'  //not correct
    };
    </script>
    <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#username=addthis"></script>
    <!-- AddThis Button END -->
</body>
</html>

ここに画像の説明を入力

4

2 に答える 2

0

以下のコードを使用する必要があります。

    addthis_share = {
     url_transforms : {
         add: {
             oReferrer: LoggedOfficeGuid
              }
         } 
     } 
于 2014-04-10T09:17:46.347 に答える