[]js执行once时如何改变执行域

_proto.onMsgCallBack = function () {
this.kwxSocket.OnMessageCallBack=function(msg){
console.log("回调"+msg);
var dataTemp = JSON.parse(msg);
console.log(dataTemp.d);
kwxGame.prototype.cardData = dataTemp.d;

[b][i]Laya.timer.once(1000, this, this.onOncePiao);
[/i][/b]
}
}
在定时器中需要调用外部_proto上的函数,这里的this指向的执行域出错,请问如何调用外部的方法?
已邀请:

cuixueying

赞同来自:

第二个参数this,就是执行域,你可以对它进行改变!

要回复问题请先

商务合作
商务合作