このコードを使用する場合:
<script>
$(document).ready(function ()
{
$.getJSON("http://twitter.com/statuses/user_timeline/USERNAME.json?callback=?", function(data) {
if(data[0].text.length > 107)
$(".show_tweet").html(data[0].text.substring(0,107));
else
$(".show_tweet").html(data[0].text);
});
});
</script>
<div class='show_tweet'></div>
テキストの最後に 3 つのドット "..." を自動的に追加するには、どのコードを追加する必要がありますか?