質問編集履歴
2
追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,4 +30,6 @@
|
|
30
30
|
|
31
31
|
上の状態だとループできません。
|
32
32
|
|
33
|
+
ループできないというかそもそも obj.testにアクセスできないです。
|
34
|
+
|
33
35
|
上と下は何が違うのでしょうか?
|
1
コード追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,28 @@
|
|
1
|
+
```javascript
|
2
|
+
|
3
|
+
var getroom = {};
|
4
|
+
|
5
|
+
getroom[room] = snapshot.val();
|
6
|
+
|
7
|
+
obs.trigger('showRoom', getroom);
|
8
|
+
|
9
|
+
```
|
10
|
+
|
11
|
+
```javascript
|
12
|
+
|
13
|
+
obs.on('showRoom', function(obj) {
|
14
|
+
|
15
|
+
console.log(obj)
|
16
|
+
|
17
|
+
tag.room = {test: {timestamp: 1924721, title: "title"}}
|
18
|
+
|
19
|
+
console.log(tag.room)
|
20
|
+
|
21
|
+
tag.update()
|
22
|
+
|
23
|
+
})
|
24
|
+
|
1
|
-
![![イメージ説明](6043587449fd6bdb34123f87fcf103c9.png)](a81b7f4ab9da627e6239e3249909b469.png)
|
25
|
+
```![![イメージ説明](6043587449fd6bdb34123f87fcf103c9.png)](a81b7f4ab9da627e6239e3249909b469.png)
|
2
26
|
|
3
27
|
下は直接自分で書いたものです。
|
4
28
|
|