跳到主要内容

exists

判断指定的键是否存在

声明

bool exists(string key)

参数

参数名描述
key键名

返回值

true: 存在;false: 不存在

使用方式

返回文档