当前位置:网站首页>JSP out.println()方法具有什么功能呢?
JSP out.println()方法具有什么功能呢?
2022-08-02 00:01:00 【qq_25073223】
转自:
下文讲述JSP中out.println()方法的功能简介说明,如下所示:
out.println()方法的功能:
输出数据的字符串信息后换行(常被人称之为换行输出)
out.println()方法的语法:
public abstract void println()
分行显示各种数据类型的内容
注意事项: println()的换行效果,在网页中几乎是没有效果 因为这种回车换行,在浏览器中通常不会解析这种换行效果 所以浏览器中换行,还是需使用<br/>标签
例
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>out.println方法的示例</title> </head> <body> <% System.out.println("one."); System.out.println("two."); System.out.println("three."); %> </body> </html>
边栏推荐
- SphereEx苗立尧:云原生架构下的Database Mesh研发实践
- @Resource和@Autowired的区别
- Axure教程-新手入门基础(小白强烈推荐!!!)
- SphereEx Miao Liyao: Database Mesh R&D Practice under Cloud Native Architecture
- C language Qixi is coming!It's time to show the romance of programmers!
- 如何优雅的消除系统重复代码
- 短视频seo搜索优化主要内容
- Unity—四元数、欧拉角API+坐标系统
- 【Leetcode】479. Largest Palindrome Product
- EasyExcel的简单读取操作
猜你喜欢
随机推荐
当奈飞的NFT忘记了Web2的业务安全
DOM 基础操作
根本上解决mysql启动失败问题Job for mysqld.service failed because the control process exited with error code
OpenCV DNN blogFromImage() detailed explanation
一篇永久摆脱Mysql时区错误问题,idea数据库可视化插件配置
Docker搭建Mysql主从复制
【图像融合】基于加权和金字塔实现图像融合附matlab代码
Enterprise firewall management, what firewall management tools are there?
【Leetcode】479. Largest Palindrome Product
Win11如何获得最佳电源效率?
如何发现新的潜力项目?工具推荐
Deliver cloud-native microservices applications with Zadig
Excel导入和导出
async和await用法介绍
【Leetcode】470. Implement Rand10() Using Rand7()
Axure教程-新手入门基础(小白强烈推荐!!!)
双队列实现栈?双栈实现队列?
Short video seo search optimization main content
LeetCode_322_零钱兑换
Collection of NFT tools