<!DOCTYPE html>
<html>
<head>
<body>
</body>
</html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script type="text/javascript">
for(var i=0;i<6;i++){
if(i==3){
break; //整个循环中断了//continue; //跳过本次循环,只是本次循环中断了,并没有中断整个循环
}console.log(i);
}
</script></head>
<body>
</body>
</html>