回答編集履歴
1
コメントを受けて追記
answer
CHANGED
@@ -6,4 +6,14 @@
|
|
6
6
|
rid = $(element).data('rid');
|
7
7
|
$.getJSON('https://'+window.location.hostname+'/gateway.php?cmd=read&myid='+MYID+'&_v='+CLIENT_VER+'&_av=4&_t='+ACCESS_TOKEN+'&ln=ja&room_id='+rid+'&last_chhkkt_id='+$('._message[data-rid='+rid+']:last ').data('mid')+'&_='+d.getDate());
|
8
8
|
});
|
9
|
+
```
|
10
|
+
|
11
|
+
##### コメントを受けて追記
|
12
|
+
```js
|
13
|
+
var d=new Date();
|
14
|
+
var rid;
|
15
|
+
$('#_roomListArea li').each(function(i, element){
|
16
|
+
rid = $(element).data('rid');
|
17
|
+
$.getJSON('https://'+window.location.hostname+'/gateway.php?cmd=read&myid='+MYID+'&_v='+CLIENT_VER+'&_av=5&_t='+ACCESS_TOKEN+'&ln=ja&room_id='+rid+'&last_chhkkt_id='+$('._message[data-rid='+rid+']:last ').data('mid')+'&_='+d.getDate());
|
18
|
+
});
|
9
19
|
```
|