?
Ce document utilise Manuel du site Web PHP chinois Libérer
JScript? | 語(yǔ)言參考 |
RemoveAll 方法從一個(gè) Dictionary 對(duì)象中刪除所有的主鍵,條目對(duì)。
object.RemoveAll( )
其中 object 總是一個(gè) Dictionary 對(duì)象的名稱(chēng)。
下面這段代碼說(shuō)明了 RemoveAll 方法的用法:
var a, d, i;
??????//
創(chuàng)建一些變量。d = new ActiveXObject("Scripting.Dictionary");
d.Add ("a", "Athens");
??????//
添加一些主鍵和條目。d.Add ("b", "Belgrade");
d.Add ("c", "Cairo");
...
d.RemoveAll( );
???????//
清除dictionary
。
Add 方法 (Dictionary) | Exists 方法 | Items 方法 | Keys 方法 | Remove 方法應(yīng)用于: Dictionary 對(duì)象