大约有 63 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0043 秒)
...b[p] } ; return function(d, b) { extendStatics(d, b); function __() { this.constructor = d } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __) } }(); 然后运行代码会报Uncaught TypeError: LayerManager is not a constructor的错误 我看到Laya有一个Laya.cla...
来源: Laya_社区 发布时间: 20171212
...态函数失败了 这是我的启动类 // 程序入口 class GameMain { constructor() { Laya.init(600, 400); Laya.stage.bgColor = "#123456"; Laya.loader.load([ { url: "res/beijing/beijing2.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/co...
来源: Laya_社区 发布时间: 20180507
...——————————————— class LayaUISample { constructor() { Laya.init(1280, 720); sumToJava(); } } function test() { console.log("java to js") } function sumToJava() { alert("js to java"); js2java.back(); } //程序入口 ...
来源: Laya_社区 发布时间: 20170517
...roperty 'pivotX' of null 打开弹窗UI时报错 Uncaught TypeError: Class constructor Component cannot be invoked without 'new' TypeError: Cannot read property 'length' of null TypeError: Cannot read property 'getSubShaderAt' of undefined Uncaught TypeError: Cannot read property 'indexCount' Uncaug...
来源: Laya_社区 发布时间: 20180307
...er = Laya.Handler; export class Onloading extends ui.LoadingUI{ constructor(){ super(); this.loadingBar.changeHandler = new Handler(this, this.onChange); } public changeValue():void{ console.log("change"); if (this.loadingBar.value >= 1){ ...
来源: Laya_社区 发布时间: 20180524
...st 。 private n:number = 0; private x0:number = 0; private y0:number = 0; constructor(){super();} onEnable():void{ this.x = this.x0; this.y = this.y0; Laya.timer.loop(20, this, this.frameWork); // 每 20 ms 执行一次 } private frameWork():void{ this.y = this.y0 + 10 * (this.n % 3); alert("move "...
来源: Laya_社区 发布时间: 20200203
graphics绘制报错 class Sprite_DisplayImage { constructor() { Laya.init(Laya.Browser.clientWidth, Laya.Browser.clientHeight, Laya.WebGL); const path = "./res/apes/monkey2.png"; Laya.loader.load(path, Laya.Handler.create(this, function() { let tex = Laya.loader.getRes(path); let sp = new Laya.Spr...
来源: Laya_社区 发布时间: 20190829
...动小程序继承Laya.Scene 的类无法实例化 new TypeError: Class constructor Vi cannot be invoked without 'new' 附件 : --> taobaominiapp.zip 2022-10-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya...
来源: Laya_社区 发布时间: 20221029
..../GameScene'; export default class VictoryScene extends VictorySceneUI { constructor() { super(); } onAwake(){ let btnOnce=this.getChildByName("btnOnce"); btnOnce.on(Laya.Event.CLICK,this,this.onClick); } onClick(e){ this.removeSelf(); let gameScene=new GameScene(); Laya.stage.addChild(gameScen...
来源: Laya_社区 发布时间: 20190903
...是降到es5以后又会其他地方报错: Uncaught TypeError: Class constructor Scene cannot be invoked without 'new' 现在这个问题有办法解决吗? 2019-10-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2...
来源: Laya_社区 发布时间: 20191002