• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,779 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0112 秒)

391. 请问用laya的tab模板创建的tab,为啥没有点击事件啊?而且tab标签点击后没有一直处于按下状态 [ 66%]

...alse);//设置 tab 的选择项发生改变时执行的处理器。     console.log("A123");     function onSelect(index)     {         console.log("当前选择的标签页索引: index= ", index);     } } 2016-07-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

来源: Laya_社区 发布时间: 20160722

392. http无响应 [ 66%]

...&password=888888', 'post', 'text'); } function onHttpRequestError(e) { console.log(e); } function onHttpRequestProgress(e) { console.log(e) } function onHttpRequestComplete(e) { this.aaaa.text += "收到数据:" + hr.data; } Laya.class(LoginView,"LoginView",_super); //设置继承关系 //初...

来源: Laya_社区 发布时间: 20170215

393. List选中项下滚会变 [ 65%]

...参数index是选中项的下标 // _proto_.onSelect = function(index){ // console.log("index",index); // } _proto_.onMouse = function(e,index){ if(e.type == Laya.Event.CLICK){ //console.log(e.type,index); if(this.selectedIndex !== index){ if(this.selectedIndex!==-1){ //之前选中的列表项的...

来源: Laya_社区 发布时间: 20170805

394. 升级到2.0后.原本用字符串索引module内的函数,发现不行了, 求指教 [ 65%]

...下.   例如: a.ts module proto{    export function msg1(){        console.log("msg1");    } }   b.ts module proto{    export function msg2(){        console.log("msg2");    } }   然后再main.ts里面. function dispatchMsg(name: string){   let fun = proto[name];   fun(); }  ...

来源: Laya_社区 发布时间: 20190604

395. list 加载动画为什么实现的效果会错乱掉? [ 65%]

...addChild(list); list.array = effList; } function updateItem(cell, index) { console.log(cell.dataSource); cell.setImg(cell.dataSource); } function onSelect(index) { console.log("当前选择的索引:" + index); }     我想实现的效果是   设置每个特效宽高都为80 * 80   然后一...

来源: Laya_社区 发布时间: 20170627

396. 调试按钮,IDE报错 [ 65%]

...extensions\laya-debug\node_modules\vscode-chrome-debug-core\out\src\chrome\consoleHelper.js:138:22)     at Object.formatConsoleMessage (c:\Program Files (x86)\laya\resources\app\extensions\laya-debug\node_modules\vscode-chrome-debug-core\out\src\chrome\consoleHelper.js:39:48)     at ChromeDebugA...

来源: Laya_社区 发布时间: 20170210

397. 微信小游戏分包实战(JavaScript-小游戏适配文档-微信小游戏) [ 65%]

...。示例代码如下: ```javascript loadTask.onProgressUpdate(res => { console.log('下载进度', res.progress) console.log('已经下载的数据长度', res.totalBytesWritten) console.log('预期需要下载的数据总长度', res.totalBytesExpectedToWrite) }) ``` 本篇文档主要是讲分...

来源: Laya2.0_文档 发布时间: 20210715

398. UI-ColorPicker [ 65%]

...cker); onChangeColor(colorPicker); } function onChangeColor(colorPicker) { console.log(colorPicker.selectedColor); } })();module laya { import Stage = Laya.Stage; import ColorPicker = Laya.ColorPicker; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export cl...

来源: Laya_示例 发布时间: 20260303

399. [LayaAir3]Laya旧版本的TiledMap如何隐藏某一层级的格子贴图 [ 65%]

....tMap.tileWidth); const gridY = Math.floor(uiPosY / this.tMap.tileHeight); console.log("点击地图格子坐标:" + gridX + "," + gridY); const tileLayer = this.tMap.getLayerByName("Ground") as Laya.MapLayer; const gridSprite:Laya.GridSprite = tileLayer.getDrawSprite(gridX, gridY); tileLayer.draw...

来源: Laya_社区 发布时间: 20260113

400. TS版本的官方示例,导出到玩一玩,在读写文件时能存不能读,读不出来,甚至直接读取会显示字符串里边有乱码。。。。 [ 65%]

...e","100"); var testReadV:string = Laya.LocalStorage.getItem("ceshiValue"); console.log("testReadV = " + testReadV); 如此行代码,测试下来testReadV==undefined 这里我看了适配层,不知是怎么回事会导致读取不到或者读取时出现乱码 在laya.bkadpter.js的 var LocalStor...

来源: Laya_社区 发布时间: 20181030