v2.0.0
连接多个数组,返回的数组包含所有传入数组的元素。
输入
{% assign fruits = "apples, oranges, peaches" | split: ", " %} |
输出
- apples |
可以链式地使用 concat 过滤器来连接多个数组:
输入
{% assign furniture = "chairs, tables, shelves" | split: ", " %} |
输出
- apples |
v2.0.0
连接多个数组,返回的数组包含所有传入数组的元素。
输入
{% assign fruits = "apples, oranges, peaches" | split: ", " %} |
输出
- apples |
可以链式地使用 concat 过滤器来连接多个数组:
输入
{% assign furniture = "chairs, tables, shelves" | split: ", " %} |
输出
- apples |