ASP Count 属性

2018-09-25 18:20 更新

ASP Count 属性


Dictionary 对象参考手册 完整的 Dictionary 对象参考手册

Count 属性返回在 Dictionary 对象中 key/item 对的数目。

语法

DictionaryObject.Count

实例

<%
dim d
set d=Server.CreateObject("Scripting.Dictionary")
d.Add "n","Norway"
d.Add "i","Italy"
d.Add "s","Sweden"
Response.Write("The number of key/item pairs: " & d.Count)
set d=nothing
%>

输出:

The number of key/item pairs: 3


Dictionary 对象参考手册 完整的 Dictionary 对象参考手册
以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号