您的位置:首页 > 产品设计 > UI/UE

Continue & break function in .each() function

2011-06-22 10:24 423 查看
If you want to do "continue" in an .each() loop, you can use below code segment to implement it.

$('div').each(function (index, el) {
if (index == 0) {
return true;
}
});
break :return false;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: