手机App
清除映射 Deluge 任务会从映射中删除所有键-值映射并清空它。
<map>.clear();
其中,
<Map> 指的是待清除映射的名称。
在下面的示例中,map1 中的所有键-值映射都将删除。
actions { on add { on load { map1 = map(); map1.put("John", "India"); map1.put("David", "USA"); alert(map1.size() + "entries available"); //before clear task the map variable's size is 2 map1.clear(); alert(map1.size() + "entries available"); //清除任务之后,映射变量的大小为 0
}
写信给我们:support@zohocorp.com.cn