out.println("<script>alert('手机号码不存在');</script>");
System.out.println("<script>alert('手机号码不存在');</script>");
这是嵌入在html中的代码?为什么前面的就是弹出提示,后者就是的tomcat 中显示内容?还有为什么在代码中直接写out.println就不行?
System.out.println("<script>alert('手机号码不存在');</script>");
这是嵌入在html中的代码?为什么前面的就是弹出提示,后者就是的tomcat 中显示内容?还有为什么在代码中直接写out.println就不行?
什么叫 “还有为什么在代码中直接写out.println就不行?” ?
所以out.print(),可以使用