firebase数据的输出是什么类型的对象?以下是输出它的代码(来自documentation):
myRootRef.observeEventType(.Value, withBlock: {
snapshot in
println("\(snapshot.value)")
})
这是输出:
{
a = {
FirstName = "";
LastName = "";
};
b = {
FirstName = "";
LastName = "";
};
c = {
FirstName = "";
LastName = "";
};
}
那是什么对象? (Array
,Dictionary
,String
?)
答案 0 :(得分:1)
它是[String: AnyObject]
更新评论
它是一个带字符串键的字典,其值为带有键字符串和值字符串的字典....所以准确
[String: [String: String]]