Browse Source

bug fix

pull/2/head
宿召阳 10 years ago
parent
commit
b1aff5c997
  1. 2
      webroot/AutoSa/static/js/main.js

2
webroot/AutoSa/static/js/main.js

@ -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];
} , } ,

Loading…
Cancel
Save