本文共 171 字,大约阅读时间需要 1 分钟。
项目中使用freemarker模板做页面,用到contains方法:
<#if currentPath?contains('.xml') || currentPath?contains('.XML')>xxxxx
遇到问题,一直出错,发现最开始吧?contains写成了.contains,写成了后端方法调用了,很简单的东西搞了好一会儿
转载地址:http://vitbi.baihongyu.com/