大约有 1,595 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0071 秒)
... sp=new Sprite(); sp.name = i.toString(); console.log(sp.name); sp = project.drawsomething(20, 20+60*i, "#eeb9b3"); sp.on(Event.CLICK,this, onsp); Laya.stage.addChild(sp); } private function onsp(e:Event){ ...
来源: Laya_社区 发布时间: 20170330
... xmlValue = "item aitem bsomethings..."; proessXML(xmlValueContainsError); console.log("\n"); proessXML(xmlValue); } function proessXML(source) { try { var xml = Utils.parseXMLFromString(source); } catch (e) { console.log(e.massage); return; } printDirectChildren(xml); } function printDirectChildren...
来源: Laya_示例 发布时间: 20251130
...# } private openHandler(event: any = null): void { //正确建立连接; console.log("建立连接");//***************************************************************************不写出 console.log(event); } private receiveHandler(msg: any = null): void { ///接收到数据触发函数 console.l...
来源: Laya_社区 发布时间: 20180211
...化则必须保证池中最少存在1个 if (this.m_ObjectPoolDic[key]){ console.log("初始化有误,该值已经有对应的 对象池了"); } else{ this.m_ObjectPoolDic[key]=new QueueT<Laya.MeshSprite3D>(); this.m_ObjectPoolDic[key].push(MeshSprite); } } //按照编号取出对应对象...
来源: Laya_社区 发布时间: 20191206
... cell._childs[1].text=data.listNumber.text; console.log(index) //根据子节点的名字listNumber,获取子节点对象。 var listNumber1 = cell.getChildByName("text"); // var text = cell.getC...
来源: Laya_社区 发布时间: 20180717
...Laya.loader.loadPackage("sub1111").then(() => { console.log('pack sub1 loaded'); new Subpack1().init(); }, (err) => { console.log('pack sub1 error', err); }); 2025-09-09 添加评论 免...
来源: Laya_社区 发布时间: 20250909
... this.rigidbody.linearVelocity = vectory; console.log("施加的线速度:"); console.log(vectory); console.log("获取得到的线速度:"); console.log(this.rigidbody.linearVelocity); 附件 : --> 2020-03-30...
来源: Laya_社区 发布时间: 20200330
...uest(); hr.http.timeout = 3000; hr.http.ontimeout = function(){console.log("http timeout test: timeout")}; hr.once(Laya.Event.COMPLETE, this, ()=>{console.log("http timeout test: success");}); hr.once(Laya.Event.ERROR, this, (e: any)=>{console.log("http timeout test: er...
来源: Laya_社区 发布时间: 20171016
...(jsonString) { var pJson = JSON.parse(jsonString); console.log("code:"+ pJson .code); console.log("product_id:"+ pJson.product_id); console.log("amount:"+ pJson.amount); console.log("order_id:"+ pJson.order_id); console.log("desc:"...
来源: Laya2.0_文档 发布时间: 20210715
...s.ps); } down2() { this.a = Laya.stage.mouseX; this.b = Laya.stage.mouseY; console.log("鼠标点击的点" + this.a, this.b) Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.move2) } move2() { this.path.push(Laya.stage.mouseX, Laya.stage.mouseY); // console.log("移动的点集合" + this.path); thi...
来源: Laya_社区 发布时间: 20170721