Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
就像做shapshot.val()有什么属性可以实现这一点?
shapshot.val()
如果您只想将这些数字键转换为数组,您可以简单地执行以下操作:
var arr = []; for(var i in obj) { arr.push(obj[i]); }
从哪里obj返回对象firebase-document,arr是结果
obj
firebase-document
arr