您无权读取数据.要查看此内容,您可以附加完成侦听器并记录它为您提供的错误:
var ref=firebase.database().ref("support/"+id); console.log("In getData, looking for ",ref); // get support data from firebase ref.on('value',function (snapshot) { console.log("In Value"); console.log(snapshot); }, function(error) { console.error(error); }); console.log("end getData, looking for ",ref);
这样做表明:
错误:/ support/abc中的permission_denied:客户端无权访问所需数据.