我需要做类似的事情。谁能帮帮我?
var listRef = new Firebase("https://t3zlg47s3v6.firebaseio-demo.com/some-list");
for (var i=0 ; i < 3 ; i++){
listRef.push().set({login: "tulio"+i, email: i+"_tulio@hotmail.com", password: "teste"+i});
}
listRef.on("child_added", function(snapshot) {
if(snapshot.val().login == 'tulio1'){
listRef.remove(snapshot);
}
});