Well, the bracket notation means you can index into this variable.
好的,这个括号的意思是你可以,索引这个变量。
Well, , the bracket notation means you can index into this variable.
好的,这个括号的意思是你可以,索引这个变量。
Just as you can access data with the dot and bracket notation shown above, you can easily modify data in the same way.
正如可以用点号和括号访问数据,也可以按照同样的方式轻松地修改数据。
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).
创建完后,可以以对象的方式或使用数组下标索引的方式引用数组中的元素。
Dot-notation should always be used for accessing and mutating properties, as it makes code more concise. Bracket notation is preferred in all other instances.
当访问和修改属性是应该总是使用点语法,这会使得代码更简洁。括号符号具有更高的优先级。
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 you have created a dictionary, you can access its values using the standard square-bracket indexing notation, but using a string as the index instead of a number.
一旦完成了创建字典,您就可以使用标准方括号索引符号来访问它的值,但是要使用字符串作为索引而不是一个数字。
Using square bracket () notation, you can specify a filter-in this case, the stylesheet filters for Mail items only.
使用方括号()标记,您可以指定一个过滤器—在本例中,样式表只过滤Mail项目。
Using square bracket () notation, you can specify a filter-in this case, the stylesheet filters for Mail items only.
使用方括号()标记,您可以指定一个过滤器—在本例中,样式表只过滤Mail项目。
应用推荐