aaa://需要将循环命名 for(var i=0;i<10;i++){ for(var j=0;j<5;j++){ if(i==3 && j==4){ break aaa;//跳出循环aaa } } } alert(i);输出3