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