每个循环停止jquery

Seb*_*ien 2 jquery

我怎么能停止$ .each循环?

$.each(files, function(index, file){
    if(file.field_index == remove_file_index){
        //Find remove_file_index Stop $.each
    }
});

Continue to execute code...     
Run Code Online (Sandbox Code Playgroud)

谢谢

Aru*_*hny 12

你可以return false停止循环