💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
| JScript  | [语言参考](#) | |-----|-----| # Dictionary 对象 存储数据键和项目对的对象。 `y = new ActiveXObject("Scripting.Dictionary") ` #### 说明 **Dictionary** 对象等价于 PERL 联合数组。项目可以是数据的任何形式,并存储在数组中。每个项目都与一个具有唯一性的键相联。该键用于取得单个项目,并且通常是整数或字符串,但也可以是除数组以外的任何类型。 下面代码演示了如何创建 **Dictionary** 对象: ~~~ var y = new ActiveXObject("Scripting.Dictionary"); y.add ("a", "test"); if (y.Exists("a")) ~~~     ~~~ document.write("true"); ~~~ ~~~ ... ~~~ #### 方法 [Add 方法 (Dictionary)](#) | [Exists 方法](#) | [Items 方法](#) | [Keys 方法](#) | [Remove 方法](#) | [RemoveAll 方法](#) #### 属性 [Count 属性](#) | [Item 属性](#) | [Key 属性](#) #### 请参阅 [FileSystemObject 对象](#) | [TextStream 对象](#) [© 2000 Microsoft Corporation 版权所有。保留所有权利。使用规定。](#)