【发布时间】:2015-04-17 12:58:56
【问题描述】:
当用户在点击关注按钮时成功登录 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>
【问题讨论】:
标签: events callback google-plus