0

以下のページにコードがあります。

$(document).ready(function() {
    window.setInterval(function(){
        $("#customers, td, #span").each(function(){
            if($(this).children("span").attr("alt")!=null)
                var dt=new Date($(this).children("span").attr("alt").split(",")[3]).getTime();
                    if(dt>$.now()-10*1000){ //am i right here??
                        console.log("animating");
                        $(this).parent().fadeOut("slow");
                        $(this).parent().fadeIn("slow");
                    }        
       });
    },1000);
});

このコードは chrome では問題なく動作しますが、firefox では動作しません。firefox と言ってTypeError: $(...).each is not a functionいます。

誰でも私を助けることができますか??

4

1 に答える 1

0

new Date()firefoxでは動かないようです。

日付は;

new Date("2013-04-07 15:39:17");

私はそれを更新しました;

new Date("2013/04/07 15:39:17");
于 2013-04-07T13:56:01.697 に答える