How to break foreach loop in javascript?
This question already has an answer here:
There is no way to stop or break a forEach() loop other than by throwing an exception. I think forEach is not suited for your job, use a simple loop instead
链接地址: http://www.djcxy.com/p/70050.html