This method takes a pre - transaction snapshot of the account data and stores it an associative array.
这个方法获取帐户数据的交易前快照,并将它存储在一个关联数组中。
Result: associative array of orders info
Curly braces denote an associative array (that is, an object), with its key - value pairs separated by commas.
大括号表示联合数组(即对象),它的键-值组合由逗号分隔。
Make a second copy of the array, shuffle the copy, and build an associative array, where the original letter gets a shuffled value.
制作另外一份数组副本,搅乱该副本,并构建一个联合数组,其中原来的字母将获得重组后的值。
Remember that the prototype is an object, so it is also an associative array.
请记住,原型是一个对象,所以它也是一个关联数组。
The script returns an associative array consisting of name-value pairs, each of which is used to initialize a writable property of the application instance.
此脚本返回一个包含键值对的关联数组,它们中的每一项被用来初始化应用实例 中的可写属性。
Now, if we want to use an object as an associative array, we can do it with a little trick
现在,我们想要使用一个对象作为关联数组,我们可以用一个小技巧:
In case of first, the returned array is an associative array containing the book information.
当它被设置成first时,返回的数组是一个关联数组,其中包含有书的信息。
Each string is the name of an item, and the corresponding number in the associative array is the quantity of that item in the cart.
每个字符串都是一个商品的名称,关联数组中的对应数字就是购物车中该商品的数量。
Now, callbacks can be registered to each regular expression using an associative array, where the key is a regular expression and the value is a callback.
现在,可以使用一个关联数组来对每个正则表达式注册回调函数, 正则表达式本身作为关联数组的键, 而对应的回调函数就是关联数组的值。
Result: associative array of deposit methods
结果:存款方式的关联数组:
An associative array, map, or dictionary is a container composed of (key, value) pairs, such that each key appears at most once in the container.
关联容器:关联数组 、映射或者字典是由键值对 组成的容器,因此每一个键在给定容器中最多出现一次。
Finally, the third argument is any additional event can be any data you consider useful to pass around so listeners can act upon it. While this can be an argument of any type, we recommend passing an associative array.
最后,第三个参数是附加事件数据。这里可以是任意你认为有用的数据,因此监听器可以依据你传递的数据来发生动作。这个参数可以是任意 类型的,我们推荐传递一个关联数组。