Commit 61ac985e authored by guanghongwei's avatar guanghongwei

修改bug

parent 22c7cb6c
...@@ -2,3 +2,4 @@ ...@@ -2,3 +2,4 @@
./manage.py runserver 0.0.0.0:80 &> access.log & ./manage.py runserver 0.0.0.0:80 &> access.log &
./log_handler.py &> handler.log & ./log_handler.py &> handler.log &
node ./websocket/index.js &
\ No newline at end of file
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
//去除log中的颜色控制字符 //去除log中的颜色控制字符
var regx = /\x1B\[([0-9]{1,3}((;[0-9]{1,3})*)?)?[m|K]/g; var regx = /\x1B\[([0-9]{1,3}((;[0-9]{1,3})*)?)?[m|K]/g;
tag.append('<p>'+escapeString(obj.content.replace(regx,''))+'</p>'); tag.append('<p>'+escapeString(obj.content.replace(regx,''))+'</p>');
tag.animate({ scrollTop: tag[0].scrollHeight}, 1000); tag.animate({ scrollTop: tag[0].scrollHeight}, 1);
}); });
return tag[0]; return tag[0];
} , } ,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment