嗨,我尝试在用户单击关注后显示警报消息
<a href="https://twitter.com/twitterapi" class="twitter-follow-button" data-show-count="false" data-lang="en">Follow @twitterapi</a>
<script type="text/javascript">
!function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (!d.getElementById(id)) {
js = d.createElement(s);
js.id = id;
js.src = "//platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
}
}(document, "script", "twitter-wjs");</script>
<script type="text/javascipt">
twttr.events.bind('follow', function (event) {
alert("message");
});
</script>
我没有收到警报消息。我做得对吗?任何人都可以帮忙吗?坦克