提交 52ad6bcf 编写于 作者: F fuchao

fix example code error

Signed-off-by: Nfuchao <chao.fu@thundersoft.com>
上级 21a6a4a2
......@@ -1041,7 +1041,7 @@ promise1.then(() => {
console.log('connect success');
let promise2 = tcp.getRemoteAddress();
promise2.then(() => {
console.log('getRemoteAddress success:' + JSON.stringify(data));
console.log('getRemoteAddress success');
}).catch(err => {
console.log('getRemoteAddressfail');
});
......@@ -1120,7 +1120,7 @@ promise.then(() => {
console.log('connect success');
let promise1 = tcp.getState();
promise1.then(() => {
console.log('getState success:' + JSON.stringify(data));
console.log('getState success');
}).catch(err => {
console.log('getState fail');
});
......
......@@ -1041,7 +1041,7 @@ promise1.then(() => {
console.log('connect success');
let promise2 = tcp.getRemoteAddress();
promise2.then(() => {
console.log('getRemoteAddress success:' + JSON.stringify(data));
console.log('getRemoteAddress success');
}).catch(err => {
console.log('getRemoteAddressfail');
});
......@@ -1120,7 +1120,7 @@ promise.then(() => {
console.log('connect success');
let promise1 = tcp.getState();
promise1.then(() => {
console.log('getState success:' + JSON.stringify(data));
console.log('getState success');
}).catch(err => {
console.log('getState fail');
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册