Skip to content

Commit fbbd4bd

Browse files
committed
Update translation of section foreach in dynamic-sql.xml.
1 parent 2094dfa commit fbbd4bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/site/zh/xdoc/dynamic-sql.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ AND title like ‘someTitle’]]></source>
157157
</foreach>
158158
</select>]]></source>
159159
<p>foreach 元素的功能是非常强大的,它允许你指定一个集合,声明可以用在元素体内的集合项和索引变量。它也允许你指定开闭匹配的字符串以及在迭代中间放置分隔符。这个元素是很智能的,因此它不会偶然地附加多余的分隔符。</p>
160-
<p><span class="label important">注意</span> You can pass any Iterable object (for example List, Set, etc.), as well as any Map or Array object to foreach as collection parameter. When using an Iterable or Array, index will be the number of current iteration and value item will be the element retrieved in this iteration. When using a Map (or Collection of Map.Entry objects), index will be the key object and item will be the value object.</p>
160+
<p><span class="label important">注意</span> 你可以将任何可迭代对象(如列表、集合等)和任何的字典或者数组对象传递给foreach作为集合参数。当使用可迭代对象或者数组时,index是当前迭代的次数,item的值是本次迭代获取的元素。当使用字典(或者Map.Entry对象的集合)时,index是键,item是值。</p>
161161
<p>到此我们已经完成了涉及 XML 配置文件和 XML 映射文件的讨论。下一部分将详细探讨 Java API,这样才能从已创建的映射中获取最大利益。</p>
162162
</subsection>
163163
<subsection name="bind">

0 commit comments

Comments
 (0)