51help TIY
码:
<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>
查看结果: