首页 Liquid 语法 函数(Filters) replace_first replace_first Baklib 发布于:2025-01-02 将字符串中出现的第一个参数替换为第二个参数。输入 {% assign my_string = "Take my protein pills and put my helmet on" %} {{ my_string | replace_first: "my", "your" }} 输出 Take your protein pills and put my helmet on 提交反馈 您觉得这篇文章是否有帮助? 😊 有用 😞 无用 Close abs reverse