Commit b1aff5c9 authored by 宿召阳's avatar 宿召阳

bug fix

parent f5b02265
...@@ -44,7 +44,7 @@ $.fn.webSocket = function(opt){ ...@@ -44,7 +44,7 @@ $.fn.webSocket = function(opt){
//告诉服务器端有用户登录 //告诉服务器端有用户登录
socket.emit('login', {userid:message.id, filename:message.filename}); socket.emit('login', {userid:message.id, filename:message.filename});
socket.on('message',function(obj){ socket.on('message',function(obj){
tag.append(escapeString(obj.content)); tag.append('<p>'+escapeString(obj.content)+'</p>');
}); });
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