巴克励步
发布于:2025-01-02
将数组中的各个字符串合并为一个字符串,并将 split 参数作为字符串之间的分隔符。
split
输入
{% assign beatles = "John, Paul, George, Ringo" | split: ", " %} {{ beatles | join: " and " }}
输出
John and Paul and George and Ringo