閱讀319 返回首頁    go 阿裏雲 go 技術社區[雲棲]


jQuery中跳出$.each

  

我們知道$.each是jQuery方法中的循環方法。但是我們跳出循環的時候不能用break和continue。

那麼我們為了跳出$.each方法怎麼辦?我們可以 用return false和true來控製。

break使用return false來替代,continue 使用return ture來替代。

最後更新:2017-04-02 22:16:29

  上一篇:go What is the methodLists attribute of the structure objc_class for?
  下一篇:go MOM係列文章之 - Final Consistency 討論