返回集合中的當前項。
enumObj.item()
必選項 myEnum 參數為任意 Enumerator 對象。
item 方法返回當前項。 假如集合為空或者當前項沒有定義,那么將返回undefined 。
在下面的代碼中,使用了 item 方法返回 Drives 集合中的一個成員。
function ShowDriveList(){ var fso, s, n, e, x; fso = new ActiveXObject("Scre.item(); s = s + x.DriveLetter; s += " - "; if (x.DriveType == 3) n = x.ShareName; else if (x.IsReady) n = x.VolumeName; else
n = "[
驅動器未就緒]";
s += n + "<br>";
}
return(s);
}
新聞熱點
疑難解答