ASP RemoveAll 方法
❮ 字典对象完整参考
RemoveAll 方法用于移除字典对象中的所有键值对。
语法
DictionaryObject.RemoveAll
示例
<%
dim d,a,i
set d=Server.CreateObject("Scripting.Dictionary")
d.Add "n","Norway"
d.Add "i","Italy"
d.Add "s","Sweden"
d.RemoveAll
Response.Write("<p>键值:</p>")
a=d.Keys
for i=0 to d.Count-1
Response.Write(a(i))
Response.Write("<br>")
next
set d=nothing
%>
输出
键值
(无)
❮ 字典对象完整参考