var reference = Firebase(url: "https://myapp.firebaseio.com/the_awesome_node")
reference.observeEventType(FEventType.Value, withBlock: { (snapshot) -> Void in
//do something
})
稍后在我的代码中,我希望https://myapp.firebaseio.com/the_awesome_node
获得(Firebase类)的引用。
我无法在API中找到它。
答案 0 :(得分:1)
解决:
reference.parent + "/" + reference.key