Authored by zzzzzzz

回调

... ... @@ -18,7 +18,7 @@ var socket = require('./socket-chat'),
cmEntity = socketConf.conversationMessage;
const chatBox = $('#chat-window'),
encryptedUid = $('#encrypteduid').val();
encryptedUid = $('#encrypteduid').val();
const append = (html) => {
chatBox.append(html);
... ... @@ -65,7 +65,7 @@ var chat = {
},
// 获取10条历史记录
fetchHistoryMsg: function() {
fetchHistoryMsg: function(cb) {
const self = this;
var data = {
... ... @@ -82,6 +82,7 @@ var chat = {
self.getMessage(item);
}
}
cb();
}
});
},
... ...