日期:2014-05-16 浏览次数:20339 次
<html> <head> <title></title> </head> <body> <script> alert("test"); </script> <% int i = 1; int j = 1; System.out.println("77777777"); //System.out.print(1/(i-j)); %> 1231231231 </body> <%System.out.println("99999999999");%> <script> alert("test2"); </script> </html>
?次页面执行效果:先打印出77777777和99999999999,再弹出窗口test和test2;
如果将注释去掉:先打印出77777777,然后页面报错:java.lang.ArithmeticException: / by zero