function begingame(){
console.log("开始游戏");
var Tween = Laya.Tween;
gamebox.x = Laya.Browser.width;
gamebox.visible = true;
Laya.stage.addChild(gamebox);
// Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,);
Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,Handler.create(this,onTweeed))
Tween.to(gamebox,{x:0},1000);
console.log(beginbox.x);
}
function onTweeed(){
alert("完成了");
}
这样写,报错了:Uncaught ReferenceError: Handler is not defined at begingame