为此,要遍历结果数组,每次获取一个单独元素的引用并检索它的属性。
To do that, you go through the results array, each time getting a reference to the individual element and retrieving its attributes.
清单8所示的代码中,可以像访问数组元素一样访问元素的属性。
In the code shown in Listing 8, you access attributes of an element just as you would elements of an array.
我们可以使用数组语法访问多值属性的个别元素,例如第一个地址。
We can access individual elements of many-valued properties, such as the first address, using array syntax.
应用推荐