AssociativeArray

new Cesium.AssociativeArray()

键值对的集合,以散列形式存储 查找,但也提供了一个数组快速迭代。

Members

获取集合中的项数。
获取集合中所有值的无序数组。 这是一个动态数组,将自动反映集合中的值, 不应直接修改。

Methods

contains(key)boolean

确定所提供的键是否在数组中。
Name Type Description
key string | number 检查的钥匙。
Returns:
如果键在数组中,则true,否则为false
检索与提供的键相关联的值。
Name Type Description
key string | number 要检索其值的键。
Returns:
关联值,如果键不存在于集合中,则未定义。
从集合中删除键值对。
Name Type Description
key string | number 删除的key。
Returns:
如果该键被删除,则为True;如果该键不在集合中,则为false。
清除集合。
将提供的键与提供的值关联。如果钥匙已经了 存在,它是用新值覆盖的。
Name Type Description
key string | number 唯一标识符。
value * 要与所提供的键关联的值。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.