即时通讯
前端使用layui框架中的即时通讯 前端的一个代码测试 var uuid,username,head_pic,my_pic,my_name,my_id; apiready = function() { uuid = api.pageParam.uuid; username = api.pageParam.username; if(api.pageParam.head_pic ==''){ head_pic='../../image/moren.png'; }else{ head_pic = localhost+api.pageParam.head_pic; } api.ajax({ url: getUserInfoUrl, method: 'post', }, function(ret, err) { // alert(JSON.stringify(ret)); if(ret){ if(ret.status == 1){ if(ret.result.head_pic){ my_pic = localhost+ret.result.head_pic; }else{ my_pic = "../../image/moren.png" } if(ret.result.resume){ my_name = ret.result.resume.name; }else{ my_name =