get
本节介绍 Zoho Creator 中的 Map - get 函数的语法和使用。
描述
Map - get 函数返回指定的键将映射到的字符串值。
语法
<map>.get(<key>)
get 函数语法有以下参数。
key - 必需。要在映射中搜索的键。
返回值
返回指定的键要映射到的字符串值。如果映射未包含此键的映射,则返回空值。
示例
serviceURL = map(); // map constructor to initalize the map variable named serviceURL
serviceURL.put("creator","http://creator.zoho.com");
serviceURL.put("writer","http://writer.zoho.com");
x=serviceURL.get("writer"); //返回 "http://writer.zoho.com"