2010-06-16 60 views

回答

5

如果你想要的是嗡嗡聲追隨者數,你甚至不需要jQuery。只需在Buzz API中使用JSONP支持,並撥打followers endpoint ...

<html> 
    <head> 
    <script> 
     function followerCount(response) { 
     alert(response.data.totalResults); 
     } 
    </script> 
    <script src="https://www.googleapis.com/buzz/v1/people/googlebuzz/@groups/@followers?alt=json&callback=followerCount&max-results=0"></script> 
    </head> 
</html>