开发者

IndexOf in Velocity report?

开发者 https://www.devze.com 2023-01-24 20:14 出处:网络
Is there some equivalent of javascripts indexOf in Velocity? I want to test whether some开发者_StackOverflow中文版 string is contained within another string but I can\'t find the proper string operato

Is there some equivalent of javascripts indexOf in Velocity? I want to test whether some开发者_StackOverflow中文版 string is contained within another string but I can't find the proper string operator for it.


Velocity allows you to use all Java methods available in your objects. So just write as if it was Java:

$string1.indexOf($string2)
0

精彩评论

暂无评论...
验证码 换一张
取 消