Twitter API を使用してツイートを取得し、それを変数に割り当てています。そのようです。
self.tweets = $.map(data.results, function(tweet){
return{
author: tweet.from_user,
url: 'http://twitter.com/' + tweet.from_user + '/status/' + tweet.id_str,
image: tweet.profile_image_url,
tweet: tweet.text
};
});
私は私のために働いています。ツイートを HTML に追加しています。テキストはそのようです..
@drwarwick Hi David! Looking forward to catching up with you, but may not get in there today due to work commitments...
私が今やりたいことは、@drwarwick を @drwarwick にラップして、それに応じてスタイルを設定してリンクできるようにすることです。ツイートでそのような単語を jquery で検索するにはどうすればよいですか。ありがとう。
編集>>>>>
上記でstackoverflowのようなことが行われています。テキストの色を変更しました。