用freemarker 做判断的时候 有没有 一个字符串包含另外一个字符的

2025-03-21 00:21:01
推荐回答(1个)
回答(1):

contains,用这个函数。

<#if "this is a string"?contains("a")>
  有包含