Skip to content
  • 首页
  • PHP源码
  • html5网页模板
  • js特效
  • Window软件
  • Mac软件
  • 服务器
  • 其他
Search
源码巴士
  • Sample Page

EL表达式中获取list长度

在jsp页面中不能通过${list.size}取列表长度,而是 
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> 

list的长度是:${fn:length(list)}

文章导航
←使用jquery发送Ajax请求的几种异步刷新方式
处理 IOS系统里js 默认时间解析为NaN问题→

Copyright © 2022 源码巴士  鲁ICP备19024253号-1