This commit is contained in:
libccy 2016-04-11 14:34:50 +08:00
parent 116f63b5ce
commit ac9ebd725c
1 changed files with 5 additions and 1 deletions

View File

@ -49,7 +49,11 @@
};
var util={
sendl:function(){
this.send(JSON.stringify(Array.from(arguments)));
var args=[];
for(var i=0;i<arguments.length;i++){
args.push(arguments[i]);
}
this.send(JSON.stringify(args));
},
getid:function(){
return (Math.floor(1000000000+9000000000*Math.random())).toString();