split v1.9.1 把字符串按照指定的分隔符进行分割,split 通常用于把逗号分隔的字符串转换为数组。 输入 {% assign beatles = "John, Paul, George, Ringo" | split: ", " %} {% for member in beatles %} {{ member }} {% endfor %} 输出 John Paul George Ringo