99re热这里只有精品视频,7777色鬼xxxx欧美色妇,国产成人精品一区二三区在线观看,内射爽无广熟女亚洲,精品人妻av一区二区三区

ASP Exists 方法

2018-09-20 19:07 更新

ASP Exists 方法


Dictionary 對(duì)象參考手冊(cè) 完整的 Dictionary 對(duì)象參考手冊(cè)

Exists 方法返回一個(gè)布爾值,該布爾值指示在 Dictionary 對(duì)象中是否存在指定的 key。如果存在,返回 true,否則返回 false。

語法

DictionaryObject.Exists(key)

參數(shù) 描述
key 必需的。要搜索的 key 值。

實(shí)例

<%
dim d
set d=Server.CreateObject("Scripting.Dictionary")
d.Add "n","Norway"
d.Add "i","Italy"
d.Add "s","Sweden"

if d.Exists("n")=true then
??Response.Write("Key exists!")
else
??Response.Write("Key does not exist!")
end if

set d=nothing
%>

輸出:

Key exists!


Dictionary 對(duì)象參考手冊(cè) 完整的 Dictionary 對(duì)象參考手冊(cè)
以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)