Suwan's blog
Monday, February 4, 2019
ตัวอย่างการอ่น id สุดท้ายจาก document ใน firebase
firebase
.database()
.ref("users")
.orderByChild("id")
.limitToLast(1)
.on("value", data => {
console.log(Object.keys(data.val())[0]);
});
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment