0

このコードが機能しないのはなぜですか?
私はこのコードを書きましたが:

(function($){
$.fn.newsSlider = function() {
    setTimeout(function() {
        this.each( function() {
            $(this).each(function(){
                $(this).append($(this).children(":first-child").clone());
                $(this).children(":first-child").remove();
            });
        });
    }, 3000);
}

}(jQuery));

setInterval あり:
http://jsfiddle.net/OmidJackson/46UNg/
setInterval なし:
http://jsfiddle.net/OmidJackson/6bKWU/

4

2 に答える 2