<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>演示break和continue关键字</title> </head> <body> <script type="text/javascript"> for(var i=0;i<10;i++){ if( i==5 ){ break; } alert(i); } for( var j=0;j<=10;j++ ){ if( j%2==0 ){ continue; } alert(j); } </script> </body> </html>