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

JScript  

item 方法

返回集合中的當前項。

enumObj.item()

必選項 myEnum 參數(shù)為任意 Enumerator 對象。

說明

item 方法返回當前項。如果集合為空或者當前項沒有定義,那么將返回undefined 。

示例

在下面的代碼中,使用了 item 方法返回 Drives 集合中的一個成員。

function ShowDriveList(){
   var fso, s, n, e, x;
   fso = new ActiveXObject("Scripting.FileSystemObject");
   e = new Enumerator(fso.Drives);
   s = "";
   for (; !e.atEnd(); e.moveNext())
   {
      x = e.item();
      s = s + x.DriveLetter;
      s += " - ";
      if (x.DriveType == 3)
         n = x.ShareName;
      else if (x.IsReady)
         n = x.VolumeName;
      else
         n = "[驅(qū)動器未就緒]";
      s +=  n + "<br>";
   }
   return(s);
}

要求

版本 3

請參閱

atEnd 方法 | moveFirst 方法 | moveNext 方法

應(yīng)用于: Enumerator 對象