The general array we index in a loop, but the Dictionary component is indexed in a string (or the string is key value).
So we look at the Dictionary component is the functional relationship of string to string.
It is like Xinhua Dictionary to find a word to find this word.
Of course, you can use the page number of the dictionary to query.
For example, as follows:
[code]
Capitalof = New ActiveXObject ("scripting.dictionary"); // Create an empty dictionary component
Capitalof.Add ("China", "Beijing"); // Add 1st correspondence
Capitalof.Add ("United States", "Washington"); // Add the second correspondence
Capitalof.Add ("South Korea", "Seoul"); // Add to 3 correspondence
Document.writeln ("Capitalof (/" China / ") =" Capitalof ("China") "
");
Document.writeln ("Capitalof (/" US / ") =" Capitalof ("USA") "
");
Document.writeln ("Capitalof (Korea /") = " Capitalof (" Korea ") "
");
script>
[/ code]