The code snippet in Listing 2 shows a loop to process every project in a DOAP file (normally, there's only one) and output data inside a element in an XML document.
清单2中的代码片断展示了一个循环,该循环用于处理DOAP文件中的每个项目(通常只有一个项目),并输出XML文档中由元素括起来的数据。
You can then use that list in a for each loop, referencing each one in turn and adding it to the appropriate span.
然后,可以在一个 for each 循环中使用这个列表,引用每个元素并把它添加到适当的 span 中。
应用推荐