Nested jQuery.each() - continue/break

后端 未结 11 513
天涯浪人
天涯浪人 2020-12-05 03:52

Consider the following code:

    var sentences = [
        \'Lorem ipsum dolor sit amet, consectetur adipiscing elit.\',
        \'Vivamus aliquet nisl quis          


        
11条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-05 04:29

    There are a lot of answers here. And it's old, but this is for anyone coming here via google. In jQuery each function

    return false; is like break.

    just

    return; is like continue

    These will emulate the behavior of break and continue.

提交回复
热议问题