remove(删除对应字符串)


从一个字符串中删除所有出现的另一个子字符串。

输入
{{ "I strained to see the train through the rain" | remove: "rain" }}
输出
I sted to see the t through the

remove_first

从一个字符串中仅仅删除第一次出现的另一个子字符串。
输入
{{ "I strained to see the train through the rain" | remove_first: "rain" }}
输出
I sted to see the train through the rain
song song
4 个月前
0

扫描下方二维码手机阅读文章

0 0