Commit 4844f786 authored by 宿召阳's avatar 宿召阳

bug fix

parent 9ad9a881
...@@ -47,6 +47,7 @@ $.fn.webSocket = function(opt){ ...@@ -47,6 +47,7 @@ $.fn.webSocket = function(opt){
//去除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);
}); });
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