Firebase:如何在删除密钥后按顺序获取密钥 [英] Firebase : How To Get key in order after Delete key

查看:61
本文介绍了Firebase:如何在删除密钥后按顺序获取密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

示例

删除后如何保持键序列?我希望它是0..1..2..3..etc

How to keep the key sequence after Delete? I want it to be 0..1..2..3..etc

推荐答案

您无法更改密钥的名称,没有用于执行此操作的API.如果要更改密钥的名称,则需要将该特定对象复制到另一个位置,更改名称并删除旧的密钥.但是在Firebase中无法更改密钥名称.

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.

这篇关于Firebase:如何在删除密钥后按顺序获取密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆