<html> <body> <script type="text/javascript"> var i=0 for (i=0;i<=10;i++) { if (i==3){break} document.write("数字是 " + i) document.write("<br />") } </script> <p>解释:循环会在 i=3 时中断。</p> </body> </html>
转载于:https://www.cnblogs.com/lanmo520/archive/2012/11/13/2767799.html