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)