How to skip to next iteration in jQuery.each() util?

后端 未结 6 712
栀梦
栀梦 2020-12-07 07:39

I\'m trying to iterate through an array of elements. jQuery\'s documentation says:

jquery.Each() documentation

Returning non-false is the same

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-07 07:49

    jQuery.noop() can help

    $(".row").each( function() {
        if (skipIteration) {
            $.noop()
        }
        else{doSomething}
    });
    

提交回复
热议问题