0

http://tweet.seaofclouds.com/のスクリプトを使用して、Webサイトに最新のツイートを表示しています。コード例7は、@ replyを表示せずにツイートを表示する方法を示しています。これを試しましたが、実際には実行されません。仕事。私がそれをするとき、それはただ何も表示しません。

また、ツイートの後にtweet_timeが表示されるように並べ替えるにはどうすればよいですか?

ありがとうございました!

最新のツイートを表示するだけで正常に機能するコード:

<script type='text/javascript'>
jQuery(function($){
    $(".tweet").tweet({
        username: "fearofmobs",
        join_text: "auto",
        count: 1,
        auto_join_text_default: "", 
        auto_join_text_ed: "we",
        auto_join_text_ing: "we were",
        auto_join_text_reply: "we replied to",
        auto_join_text_url: "we were checking out",
        loading_text: "loading tweets..."
    });
});

@repliesを省略すべきであるが、何も表示しない、使用したいコード:

<script type='text/javascript'>
jQuery(function($){
    $("#filter").tweet({
      count: 1,
      fetch: 20,
      filter: function(t){ return ! /^@\w+/.test(t.tweet_raw_text); },
      username: "fearofmobs"
    });
  });

4

1 に答える 1

0

このjsFiddleはあなたが望むもののように見えます-私はそれを正しく理解しましたか?

jQuery(function($){
  $(".tweet").tweet({
    username: "fearofmobs",
    join_text: "auto",
    count: 20,
    auto_join_text_default: "",
    auto_join_text_ed: "we",
    auto_join_text_ing: "we were",
    auto_join_text_reply: "we replied to",
    auto_join_text_url: "we were checking out",
    loading_text: "loading tweets...",
    fetch: 20,
    filter: function(t){ return ! /^@\w+/.test(t.tweet_raw_text); }
  });
});
于 2012-07-08T15:40:39.763 に答える