阅读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 讨论