|
@@ -106,9 +106,10 @@ common={
|
|
this.Join();
|
|
this.Join();
|
|
else this.tips("登录失败");
|
|
else this.tips("登录失败");
|
|
},initSocket:function(){
|
|
},initSocket:function(){
|
|
|
|
+ var _this=this;
|
|
var ws = new WebSocket("ws://183.234.61.252:8282");
|
|
var ws = new WebSocket("ws://183.234.61.252:8282");
|
|
ws.onmessage=function(e){
|
|
ws.onmessage=function(e){
|
|
- this.onSocket(e);
|
|
|
|
|
|
+ _this.onSocket(e);
|
|
}
|
|
}
|
|
|
|
|
|
},loadQuestion(responsedata) {
|
|
},loadQuestion(responsedata) {
|