📅  最后修改于: 2022-03-11 14:58:04.849000             🧑  作者: Mango
const ref = Firebase.database().ref(`/posts`);
ref.push({ title, categories, content, timestamp})
.then((snapshot) => {
ref.child(snapshot.key).update({"id": snapshot.key})
});