大约有 1,546 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0073 秒)
...) { var 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.lis...
来源: Laya_社区 发布时间: 20170914
... this.state_ = EConnectionState.eConnected; console.log("conect to 127.0.0.1"); } protected _onMessage(msg: any): void { super._onMessage(msg); console.log("receve msg : "); console.log(msg); ...
来源: Laya_社区 发布时间: 20170602
如何在chrome console 里模拟canvas点击事件 在一个用laya开发的小游戏界面上,想做一个类似自定点击的脚本。 就是固定几个位置,过一段时间点击一次。 能帮忙做的联系我~ 小游戏页面: https://pokereos.io/ 2019-01-26 添加评论 已悬...
来源: Laya_社区 发布时间: 20190126
...ed = function(){ this.pass = this.map.getLayerByIndex(0);//获取通行层 console.log(this.pass); } _proto.getLayer = function() { this.floor = this.map.getLayerByIndex(0);//获取通行层 console.log(this.pass); } console.log(this.map) return loadMap; })(Sprite);**游戏主入口** var Main = (fu...
来源: Laya_社区 发布时间: 20170605
..., this, onError); })(); function onAssetLoaded(texture) { // 使用texture console.log("加载结束"); } // 加载进度侦听器 function onLoading(progress) { console.log("加载进度: " + progress); } function onError(err) { console.log("加载失败: " + err); } })();module laya { import Event...
来源: Laya_示例 发布时间: 20250221
...(200, 0); x = t.getPixels(0,0,400,400) console.log(x) for (let i of x) { if (i > 0) { console.log(i) } } console.log(' ----- 到...
来源: Laya_社区 发布时间: 20171201
...的是DDMS+夜神模拟器的方式来看打印调试 TS代码如下: console.debug("--- test debug print ---"); console.error("--- test error print ---"); console.info("--- test Info print ---"); console.warn("--- test Trace print ---"); 打包apk后 使用模拟器运行 DDMS查看打...
来源: Laya_社区 发布时间: 20180302
...过来的数据怎么获取 private openHandler(event: any = null): void { console.log(`平台 正确建立连接`); this.socket.send("getScore"); } private receiveHandler(msg: any = null,data): void { console.log(`接收到数据触发函数:` + msg); ///////////////////////////////////////////////...
来源: Laya_社区 发布时间: 20180424
...我用android studio 离线打包,为什么在logcat里打印不出js的console.log()内容?是不是需要哪里配置或导入插件? 2018-09-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 hj 赞同来...
来源: Laya_社区 发布时间: 20180913
...功回调,发送字符串数据 */ private onSocketOpen(e: any): void { console.log("WebSocket 已连接"); // 发送字符串示例 this.socket.send("Hello, LayaAir WebSocket!"); } /** 接收数据回调 */ private onMessageReceived(msg: any): void { console.log("接收到消息:"); if (typeof ...
来源: Laya3.0_文档 发布时间: 20250214