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

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

81. list只能显示一个图片 [ 87%]

...item = {pic:{skin:'cards/'+i+'tong.jpg'}}; this.data.push(item); } console.log(this.data); this.list1.dataSource = this.data; this.list1.x = 50; this.list1.y = 500; this.list1.getChildAt(0).height = 100; this.list1.vScrollBarSkin = ""; this.list1.hScrollBarSkin = "comp/hscroll.png"; this.list1.rende...

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

82. app 安卓版本 崩溃 [ 87%]

... - 知识达人 赞同来自: 是必现的吗?能否提供一个完整的log呢? 2017-12-11 0 10 分享 微博 QZONE 微信 lgs88 赞同来自: 是指logcat的输出吗,上传了 log.zip 2017-12-11 0 0 分享 微博 QZONE 微信 lgs88 赞同来自: 好 上传了 log.zip 2017-12-11 0 0 分享 ...

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

83. 各位大佬,帮我看看 tiledMap 中获取不到自定义属性 [ 87%]

...a = this.tiledMap.getLayerByIndex(3).getTileData(tileX, tileY); // console.log(data) // console.log(Laya.Keyboard.RIGHT) switch (e.keyCode) { //右边 case 39: { this.player.x += 16 break; } case 37: { //左边 this.player.x -= 16 break; } case 38: { //上 this.player.y -= 16  break; } case 40: { /...

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

84. 获取位置信息 · LayaAir3.4 · 引擎文档 · LAYABOX [ 86%]

...(this, this.onSuccess), Laya.Handler.create(this, this.onError) ); console.log("click"); } // 成功获取位置后触发 onSuccess(info: Laya.GeolocationInfo): void { console.log('经纬度: (' + info.longitude + '°, ' + info.latitude + '°),精确度:' + info.accuracy + 'm'); if (info.altitud...

来源: Laya3.0_文档 发布时间: 20251010

85. Laya.MiniAdpter.downLoadFile缓存的文件无法读取的问题 [ 86%]

...制文件,逻辑如下:   public Request(url:string):void { console.log("url: " + url); if (Laya.Browser.onMiniGame) { var args = {url:url, handler:null}; var handler = Laya.Handler.create(this, this.OnDownloadFileInWxOk, [args], false); args.handler = handler; Laya.MiniAdpter.downLoadFile(url,...

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

86. https://ask.layabox.com/question/13181官方Demo运行不起来 [ 86%]

...ion/13181官方Demo运行不起来 wx.onMessage(function(message){ console.log(message); if (message.type && message.type == "wxxx") { //通过接收主域的消息来设置开发数据域的画布大小跟矩阵信息 sharedCanvas.width = message.width; sharedCanvas.height = message.height;...

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

87. JQ集成到Laya二次封装 [ 86%]

...demo2 ======================= JQ(aWater).on('click', function () { console.log( JQ(this).index() );//不传 匹配父级元素下的子元素开始算索引 // console.log( JQ(this).index(aWater) );//传数组,从当前数组开始算索引 // console.log( JQ(this).siblings(aWater).remove() );//...

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

88. [LayaAir3]list.selectHandler [ 86%]

...的选项    private onSelect(index: number): void {         console.log("当前选择的索引:" + index);         let checkBoxItem:Laya.CheckBox = this._list.getChildAt(index).getChildAt(0) as Laya.CheckBox;         if(checkBoxItem!=null){                         switch...

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

89. WebSocket通信 · LayaAir3.4 · 引擎文档 · LAYABOX [ 86%]

...,发送字符串数据 */ private onSocketOpen(e: any): void { console.log("WebSocket 已连接"); // 发送字符串示例 this.socket.send("Hello, LayaAir WebSocket!"); } /** 接收数据回调 */ private onMessageReceived(msg: any): void { console.log("接收到消息:"); if (typeof msg === "...

来源: Laya3.0_文档 发布时间: 20251010

90. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 86%]

...mvtoy=movetoy; this.bgimg.speedx=speedx; this.bgimg.speedy=speedy; console.log("funmovebg"+movetox); Laya.timer.frameLoop(speed, this, funbg);     2017-10-25 0 2 分享 微博 QZONE 微信 yinglei999 赞同来自:     var Loader = Laya.Loader;     var loaderHandler = Laya.Handler; var scro...

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