https://firebase.google.com/docs/database/web/read-and-write?hl=ja
このドキュメントでfirebaseのdatabaseの部分を見ているのですが下記の
var starCountRef = firebase.database().ref('posts/' + postId + '/starCount'); starCountRef.on('value', function(snapshot) { updateStarCount(postElement, snapshot.val()); });
.onってどういったものでしょうか?
また皆さんこういったメソッドってどうやって調べているでしょうか?
わからないものが出た時なかなか検索にも引っかからず困っています。。。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/01/02 12:49
2018/01/02 12:56
2018/01/02 13:29