三目表达式要加空格不然有些服务器解析不了

var maxBanners = ${maxBanners==null ? 3 : maxBanners};

 

forEach循环的长度正确使用方式

<c:forEach var="i" begin="1" end="${fn:length(dataList)}" step="1">

 

 <div class="button-basic"<c:if
test="${list.noticeReaders!=null && fn:length(list.noticeReaders)>0}"> onclick="location='<%=root%>/notice/readersList?id=${list.id}'"</c:if>>
                                                        ${list.noticeReaders==null? 0 : fn:length(list.noticeReaders)}人
                                                </div>

  

 

 

相关文章:

  • 2022-12-23
  • 2021-06-23
  • 2022-01-07
  • 2021-12-31
  • 2022-02-27
  • 2021-12-05
  • 2021-11-23
猜你喜欢
  • 2021-05-28
  • 2021-07-31
  • 2020-05-28
  • 2021-11-03
  • 2021-06-20
  • 2022-12-23
  • 2021-11-12
相关资源
相似解决方案