diff --git a/webroot/AutoSa/static/js/main.js b/webroot/AutoSa/static/js/main.js index 8da887809..f16e70a1e 100644 --- a/webroot/AutoSa/static/js/main.js +++ b/webroot/AutoSa/static/js/main.js @@ -44,7 +44,7 @@ $.fn.webSocket = function(opt){ //告诉服务器端有用户登录 socket.emit('login', {userid:message.id, filename:message.filename}); socket.on('message',function(obj){ - tag.append(escapeString(obj.content)); + tag.append('
'+escapeString(obj.content)+'
'); }); return tag[0]; } ,