replace替换匹配项

replace替换匹配项

ZKEASOFT August 28, 2018


replace

replace用第二个参数替换字符串中每个参数的出现。

输入

{{ "Take my protein pills and put my helmet on" | replace: "my", "your" }}

输出

Take your protein pills and put your helmet on

微信公众号