Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.10.1^2
zouap 3 years ago
parent
commit
487a338806
1 changed files with 0 additions and 5 deletions
  1. +0
    -5
      public/home/home.js

+ 0
- 5
public/home/home.js View File

@@ -101,15 +101,10 @@ document.onreadystatechange = function () {
var data =JSON.parse(e.data)
var html = "";
if (data != null){
console.log("data= " + e.data);
console.log("msg length= " + messageQueue.length);
if(messageQueue.length > maxSize){
messageQueue.splice(0,1);
//delete messageQueue[0];
console.log("msg length= " + messageQueue.length);
}
messageQueue.push(data);
console.log("msg length= " + messageQueue.length);
var currentTime = new Date().getTime();
for(var i = 0; i < messageQueue.length; i++){
var record = messageQueue[i];


Loading…
Cancel
Save