回复谷歌+跟随按钮的回复

时间:2015-04-17 12:58:56

标签: events callback google-plus

当用户在按下按钮时成功登录Google+时,我需要回拨事件。

此代码未给出任何回调响应:

<!DOCTYPE html>
<html lang="en">

<head>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
    <script src="https://apis.google.com/js/platform.js?onload=onLoadCallback" async defer></script>
    <script>
        function plusClick(data) {
            //Nothing working
        }
    </script>
</head>

<body>
    <div class="g-follow" data-annotation="bubble" data-onstartinteraction="tester" data-callback="plusClick" data-height="20" data-href="//plus.google.com/u/0/115175605005410528191" data-rel="author"></div>
</body>

</html>

1 个答案:

答案 0 :(得分:2)

以下小部件支持的回调不是documented