Just as you can access data with the dot and bracket notation shown above, you can easily modify data in the same way.
正如可以用点号和括号访问数据,也可以按照同样的方式轻松地修改数据。
In Listing 5, you replace the resource with a blank node and use square bracket notation to show that the two enclosed statement fragments have the same blank node subject.
清单5中用空白节点替换了资源,使用方括号表明其中的两个命题片断都使用空白节点主语。
Because most for loops deal with complicated logic that does not allow the number of iterations to be statically determined, you will not often employ this form of bracket notation.
因为大多数for循环处理的复杂逻辑不允许静态地确定迭代次数,因此您不会经常使用这种格式的括号表示。
Once established, you can reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).
创建完后,可以以对象的方式或使用数组下标索引的方式引用数组中的元素。
Once established, you can reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).
创建完后,可以以对象的方式或使用数组下标索引的方式引用数组中的元素。
应用推荐