Skip to content

Instantly share code, notes, and snippets.

@topspinppy
Created December 2, 2017 18:22
Show Gist options
  • Save topspinppy/922f9d3a72f30bfa46098e6840cc03a9 to your computer and use it in GitHub Desktop.
Save topspinppy/922f9d3a72f30bfa46098e6840cc03a9 to your computer and use it in GitHub Desktop.
var firebaseref = firebase.database().ref(); //อยากจะเดินไปตรงไหนก็เดิน ถ้าจะเดินไปตรง ROOT สุดก็ไม่ต้องใส่อะไรเลย แต่ถ้าจะเดินไปโหนตต่างๆก็ไล่ลำดับไปเช่น (root/chid1/child2)
firebaseref.child("1").set("2"); //อยากจะset ให้มี childnode ชื่อเป็นอะไรก็ใส่ตรงช่อง 1 ใส่ค่าให้ childnodes ช่อง 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment