Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
shuidiapp
shuidiapp
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • 互联网应用开发
  • shuidiappshuidiapp
  • Wiki
  • im

im · Changes

Page history
wangqs created page: im authored Nov 23, 2016 by 互联网应用开发's avatar 互联网应用开发
Hide whitespace changes
Inline Side-by-side
Showing with 10 additions and 12 deletions
+10 -12
  • im.md im.md +10 -12
  • No files found.
im.md
View page @ bcc22283
......@@ -8,6 +8,13 @@
));
}
```
#### 获取uid , uid_sinature
```javascript
var uid = RSF.getCookie('uid');
var uid_sinature = RSF.getCookie('uid_sinature');
```
#### 连接服务器
```javascript
......@@ -26,7 +33,7 @@
}.bind(this));
socket.on('login-success',function(data) {
print('登录成功!');
console.log('登录成功!');
});
```
......@@ -46,17 +53,8 @@
```javascript
socket.on('recv-private-message',function(data) {
print('我收到了别人给我的私信:');
print(data.message);
console.log('我收到了别人给我的私信:');
console.log(data.message);
});
```
#### print函数
```javascript
function print(data){
console.log(uid+'说:',data);
}
```
\ No newline at end of file
Clone repository
  • add_application
  • agree_application
  • api_desc
  • api_list
  • autobiography
  • base_info
  • branch
  • cancel_follow
  • change
  • change_applicant_name
  • change_avatar
  • change_logo
  • change_nickname
  • change_password
  • change_position
View All Pages