We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7761c68 commit f6f274bCopy full SHA for f6f274b
docs/zh-CN/concepts/data-mapping.md
@@ -880,10 +880,10 @@ ${xxx | split[:delimiter]}
880
##### 基本用法
881
882
```
883
-${xxx | join[:glue]}
+${xxx | join[:separator]}
884
885
886
-- **glue**:连接符,默认为`空字符`
+- **separator**:连接符,默认为`逗号`
887
888
```schema
889
{
@@ -893,12 +893,27 @@ ${xxx | join[:glue]}
893
},
894
"body": {
895
"type": "tpl",
896
- "tpl": "array is ${array|join}" // 输出: array is abc
+ "tpl": "array is ${array|join}"
897
}
898
899
900
901
-##### 配置连接符
+配置成空字符串
902
+
903
+```schema
904
+{
905
+ "type": "page",
906
+ "data": {
907
+ "array": ["a", "b", "c"]
908
+ },
909
+ "body": {
910
+ "type": "tpl",
911
+ "tpl": "array is ${array|join:''}"
912
+ }
913
+}
914
+```
915
916
+配置成连接符
917
918
919
0 commit comments