jTwitterjQuery的Twitter插件
jTwitter(jQuery Twitter API)利用這個(gè)jQuery插件,給定一個(gè)Twitter用戶名,就能夠獲取包含該用戶詳細(xì)信息的javascript對(duì)象包 括:followers&following counts,full name,homepage URL等。
// I am query data for "jQueryHowto" user
$.jTwitter('jQueryHowto', function(posts){
//Callback functn with the user data
$('#profile input.url').val(posts[0].user.url);
$('#profile #avatar').html('<img src="'
+ posts[0].user.profile_image_url + '" />');
});
評(píng)論
圖片
表情
