2017-01-01 93 views

回答

0

我希望这个功能将运行使用JS:

function searchKeyValue() { 
    var ref = firebase.database().ref("users"); 
    if(ref) 
    { 
    var nextref=ref.child("users"); 
    } 


} 
+1

这不起作用。引用总是存在的,所以if将始终执行。 –

+0

@FrankvanPuffelen,是否有任何方法存在的目的? –

+2

http://stackoverflow.com/search?q=%5Bfirebase%5D+check+if+node+exists –

相关问题