將數組中的各個字符串合并為一個字符串,并將?split?參數作為字符串之間的分隔符。
split
輸入
{% assign beatles = "John, Paul, George, Ringo" | split: ", " %} {{ beatles | join: " and " }}
輸出
John and Paul and George and Ringo
? Copyright 2023 深圳藍曬科技有限公司. 粵ICP備2023054553號-1