大约有 1,546 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0069 秒)
...tPos.z + (2.5 - Math.random() * 5)); console.log('----------------goldnode', goldNode); this.playerGoldArr.push(goldNode); goldNode.addComponent(goldItemNode); 报错信息: Uncaught TypeEr...
来源: Laya_社区 发布时间: 20200326
微信小游戏,获取Laya.stage的宽高问题。 console.log("Laya.stage.height = ", Laya.stage.height); console.log("Laya.stage.width = ", Laya.stage.width);在加载完资源后,我打印了stage的宽高。在测试的时候,有一些机子出了问题。 正常的,安卓机测试 不...
来源: Laya_社区 发布时间: 20180530
...alse);//设置 tab 的选择项发生改变时执行的处理器。 console.log("A123"); function onSelect(index) { console.log("当前选择的标签页索引: index= ", index); } } 2016-07-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...
来源: Laya_社区 发布时间: 20160722
...&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
...g.on(Laya.Event.CLICK, this,apeclick2, arr2); } function apeclick2(that) { console.log("apeclick sucess"); that.skin = "../img/5.jpg"; console.log(that); that.zOrder = 1; } 2017-02-18 1 0 分享 微博 QZONE 微信 chensa222 赞同来自: 忘了说 我测试过,第一次点击切换时要两次 ...
来源: Laya_社区 发布时间: 20170217
...下. 例如: 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
...参数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
...ta.duration }); //监听录屏开始事件 this._recorder.onStart((res)=>{ console.log("录屏开始 res:" + JSON.stringify(res)); }); //监听录屏错误事件 this._recorder.onError((errMsg)=>{ console.log("录屏错误 errMsg:" + errMsg); }); } } /** * 停止录屏, * 开发者根据需求,...
来源: Laya2.0_文档 发布时间: 20210715
...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
...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