大约有 1,758 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0063 秒)
Laya_社区(1080) Laya3.0_api(672) Laya2.0_文档(2) Laya_示例(1) Laya3.0_文档(1) Laya2.0_api(1) Laya2.0_示例(1)
...rivate var url_img:String = "res/"; public function WWJ_Main() { Laya.init(stageWidth, stageHeight); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage....
来源: Laya_社区 发布时间: 20170822
... { private var _templet:Templet; public function CombatRole() { super(); initView(); } private function initView():void { _templet ...
来源: Laya_社区 发布时间: 20170204
...自动转成以下JS并报错Uncaught ReferenceError: int is not defined function DConfig(){}; __class(DConfig,'DConfig'); __getset(1,DConfig,'GamrRoomEnterPower',function(){ return DConfig.gamrRoomEnterPower; },function(value){ DConfig.gamrRoomEnterPower=value; console.log(DConfig.gamrRoomEnterPowe...
来源: Laya_社区 发布时间: 20170731
怎么使用http请求 httpRequest: function (url, data) { var xhr = cc.loader.getXMLHttpRequest(); if (!xhr.onreadystatechange) { xhr.onreadystatechange = function () { if (xhr.readyState == 4 && (xhr.status >= 200 && xhr.status <= 207)) { //cc.log("response:\n" + xhr.respons...
来源: Laya_社区 发布时间: 20180807
...ters ctx: any x: number y: number Returns void set_onclick set_onclick(fn: Function): void Defined in laya/utils/IStatRender.ts:26 点击性能统计显示区域的处理函数。 Parameters fn: Function Returns void show show(x?: number, y?: number, views: any): void Defined in laya/utils/IStatRend...
来源: Laya3.0_api 发布时间: 20231102
...如下:Laya.class(MousePickingScene, "MousePickingScene", Laya.Scene); function MousePickingScene() { MousePickingScene.super(this); this.camera = new Laya.Camera(0,0.1,100); this.addChild(this.camera); this.camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; this.skyBox = new Laya.SkyBox(); this.ca...
来源: Laya_社区 发布时间: 20170323
...则值为 true;否则,值为 false。 off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删除...
来源: Laya3.0_api 发布时间: 20231115
...read property '_addReference' of undefined;at api request success callback function TypeError: Cannot read property '_addReference' of undefined at t.<anonymous> (https://usr/game.js:49:8301) at e.n._parse (https://usr/game.js:66:1995) at Function.t._createNodeByJson (http...
来源: Laya_社区 发布时间: 20190510
...nit(650, 316, Laya.WebGL); var bg1 = null; var bg2 = null; var box = null; function bg_rolling() { box = new laya.display.Sprite(); Laya.stage.addChild(box); bg1 = new laya.display.Sprite(); bg1.loadImage("res/bg1.png"); box.addChild(bg1); bg2 = new laya.display.S...
来源: Laya_社区 发布时间: 20160721
... TypeError: Cannot read property 'call' of undefined 代码: var Test = (function(_surper){ function Test(){ Test.super(this); }; Laya.class(Test, "Test", _surper); return Test; })(ui.TestUI); 报错Uncaught TypeError: Cannot read property 'call' of...
来源: Laya_社区 发布时间: 20170621