将数组中的各个字符串合并为一个字符串,并将 split 参数作为字符串之间的分隔符。
split
输入
{% assign beatles = "John, Paul, George, Ringo" | split: ", " %} {{ beatles | join: " and " }}
输出
John and Paul and George and Ringo
© Copyright 2023 深圳蓝晒科技有限公司. 粤ICP备2023054553号-1