问题
example
How to keep the key sequence after Delete? I want it to be 0..1..2..3..etc
回答1:
You cannot change the name of your keys, there is no API for doing that. If you want to change the name of a key you need to copy that particular object to another location, change the name and delete the old one. But to change the name of key is not possible in Firebase.
来源:https://stackoverflow.com/questions/50538772/firebase-how-to-get-key-in-order-after-delete-key