这是否正在Dictionary清理所有关键参考?
public static function cleanDic(_dic:Dictionary):void
{
for (var eachKey:String in _dic)
{
delete _dic[eachKey];
}
}
Run Code Online (Sandbox Code Playgroud)
我很担心,如果我在for循环中删除一些键会导致所有元素都不干净.
这会发生吗?
谢谢