Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Velocity 中是否有一些相当于 javascripts indexOf 的东西?我想测试某个字符串是否包含在另一个字符串中,但我找不到合适的字符串运算符。
Velocity 允许您使用对象中可用的所有 Java 方法。所以就像写Java一样:
$string1.indexOf($string2)