大约有 911 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0060 秒)
使用Handler 返回name 始终是 undefined public function RegDlg() { this.btn_submit.name = Dialog.SURE; this.closeHandler = Handler.create(this ,this.onClose, ["123"],false); } private function onClose(name:String):void{ if(name == Dialog.SURE){ var di:NormalDlg = new NormalDlg(); di.popupConte...
来源: Laya_社区 发布时间: 20170324
...细日志: "TypeError: Cannot read property 'call' of undefined at Function.<anonymous> (file:///Users/moos/Company/Emerson-AirWar/EmersonGame/bin/libs/laya.core.js:130:41) at new GameScene (file:///Users/moos/Company/Emerson-AirWar/EmersonGame/src/GameScene.js:4:19) at HomePa...
来源: Laya_社区 发布时间: 20180709
...s type: string Optional data: any Returns void callLater callLater(method: Function, args?: any[]): void Defined in laya/display/Node.ts:621 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 see #runCallLater() Parameters method: Function 要...
来源: Laya3.0_api 发布时间: 20231115
...这个类的时候会报错,是不是这个类写得不对呀 var Test = (function(_super){ function Test(){ Test.super(this); console.log("执行测试构造函数"); } //注册类 Laya.class(Test,"Test",_super); //获取执行域 var _proto = Test.prototype; //_proto. retur...
来源: Laya_社区 发布时间: 20180605
... Laya.loader.load("res/dreams.mp3",Laya.Handler.create(this,function(){ dreamsSound = Laya.SoundManager.playMusic("res/dreams.mp3") })) let mainSound:Laya.SoundChannel = null; this.btn_sound.on(Laya.Event.CLICK,...
来源: Laya_社区 发布时间: 20190716
...动生成的ui代码报错 导微信小程序报错window.focus is not a function module写法的模块无法使用,其他地方使用会报错 问题状态 最新活动: 2023-06-07 16:23 浏览: 2843 关注: 2 人
来源: Laya_社区 发布时间: 20230605
...情况 Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); ape.graphics.scale(1.01, 1) Laya.stage.addChild(ape); ape.pos(200, 0); })); 上面这段代码...
来源: Laya_社区 发布时间: 20170609
...用完全一样的代码,提示 Uncaught TypeError: handler.run is not a function at Tween.__proto.complete (laya.core.js:9423) 9423 :handler && handler.run(); 你们自己试试吧。。为啥要。&&run() 2017-11-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20171111
...parseXMLFromString(data); 报错Uncaught TypeError: value.replace is not a function at Function.Utils.parseXMLFromString (dsgame.max.js:9485) cuixueying • 2017-03-21 16:00 可以把你可运行的例子以附件的方式上传下,我们看下什么问题!
来源: Laya_社区 发布时间: 20170320
...加载本地图片都报错 导微信小程序报错window.focus is not a function 问题状态 最新活动: 2018-05-07 10:15 浏览: 805 关注: 2 人 vincent • 2018-05-05 16:53 是的 vincent • 2018-05-07 09:08 这个有可能是什么错?
来源: Laya_社区 发布时间: 20180505