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
ZKEASOFT August 28, 2018
replace
用第二个参数替换字符串中每个参数的出现。
输入
{{ "Take my protein pills and put my helmet on" | replace: "my", "your" }}
输出
Take your protein pills and put your helmet on