欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

腳本運(yùn)行時(shí)庫(kù)  

Items 方法

返回一個(gè)數(shù)組,其中包含了一個(gè) Dictionary 對(duì)象中的所有項(xiàng)目。

object.Items( ) 

其中 object 總是一個(gè) Dictionary 對(duì)象的名稱。

說明

下面這段代碼說明了 Items 方法的用法:

[JScript]
function ItemsDemo()
{
   var a, d, i, s;                  // 創(chuàng)建一些變量。
   d = new ActiveXObject("Scripting.Dictionary");  
   d.Add ("a", "Athens");              // 添加一些關(guān)鍵字和項(xiàng)目。
   d.Add ("b", "Belgrade");
   d.Add ("c", "Cairo");
   a = (new VBArray(d.Items())).toArray();   // 獲取項(xiàng)目。
   s = "";
   for (i in a)                  // 遍歷該 dictionary。
   {
      s += a[i] + "<br>";
   }
   return(s);                     // 返回結(jié)果。
}
[VBScript]
Function DicDemo
   Dim a, d, i, s   ' 創(chuàng)建一些變量。
   Set d = CreateObject("Scripting.Dictionary")
   d.Add "a", "Athens"   ' 添加一些關(guān)鍵字和項(xiàng)目。
   d.Add "b", "Belgrade"
   d.Add "c", "Cairo"
   a = d.Items   ' 獲取項(xiàng)目。
   For i = 0 To d.Count -1 ' 迭代數(shù)組。
      s = s & a(i) & "<BR>" ' 創(chuàng)建返回字符串。
   Next
   DicDemo = s
End Function

請(qǐng)參閱

Add 方法 (Dictionary) | Exists 方法 | Keys 方法 | Remove 方法 | RemoveAll 方法
應(yīng)用于:Dictionary 對(duì)象