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

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

301. 用JS原生态window.location.href跳转 [ 55%]

...00,100,"#FFFF00"); Laya.stage.addChild(sp); sp.size(1000,100); sp.on(Event.CLICK,this,onClick); } private function onClick():void { Browser.window.location.href="https://www.baidu.com"; } 2016-12-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 ...

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

302. 摄像机捕捉目标(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 55%]

...0); ``` ```typescript //点击事件 this.changeActionButton.on(Laya.Event.CLICK, this, function(){ this.index++; if (this.index % 3 === 1 ){ //摄像机捕捉模型目标 this.camera.transform.lookAt(this.box.transform.position, this._up); } else if (this.index % 3 === 2){ //摄像机捕捉模型...

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

303. 摄像机捕捉目标(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 55%]

...0); ``` ```typescript //点击事件 this.changeActionButton.on(Laya.Event.CLICK, this, function(){ this.index++; if (this.index % 3 === 1 ){ //摄像机捕捉模型目标 this.camera.transform.lookAt(this.box.transform.position, this._up); } else if (this.index % 3 === 2){ //摄像机捕捉模型...

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

304. addchild后,怎么去引用? [ 55%]

....ani"); lose1.x=150; lose1.y=400; lose1.size(100,300); lose1.on(Laya.Event.CLICK,this.listP,this.play1); lose1.name="lose1"; this.listP.addChild(lose1); play1():void { console.log("111"); this.lose1.play(); //this._childs[5].play(); } 2017-10-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

305. tree异步选中问题 [ 55%]

...下,== Chuan • 2018-03-24 14:57 已解决: if (e.type == Laya.Event.CLICK) { if (e.target.name == "arrow") { //Tree的开/关,当打开一个时,另一个关闭 var item:Cell = e.target.parent as Cell; if (item.dataSource.isOpen == true) { if (this.selectedIndex == -1) { this.sel...

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

306. TextInput 监听事件 Laya.Event.INPUT 事件在IOS 环境下没动作 [ 55%]

...微博 QZONE 微信 之肖 赞同来自: 试试this.vertify1.on(Laya.Event.CLICK,this,this._onInputVerify,[1) 2022-02-22 0 1 分享 微博 QZONE 微信 凱文 赞同来自: 幫推個幫推個 2022-03-01 0 0 分享 微博 QZONE 微信 Laya_Yan 赞同来自: 提供示例看一下 2022-03-01 0 0 分享...

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

307. 关于event中只读属性touches,问题,求解 [ 55%]

...00; txt.height = 100; txt.x = 200; txt.y = 100; txt.fontSize = 50; txt.on("click", this, onFunc); Laya.stage.addChild(txt); } private function onFunc(e:Event):void { var arr:Array = e.touches; console.log("e.touchId="+e.touchId); console.log("arr[0]"+arr[0]); } } }  输出为:       不明白t...

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

308. Laya.Sprite 和 laya.display.Sprite 是一样的吗? [ 55%]

...有什么办法? Laya.Sprite loadImage 参数问题 laya.sprite 不接受click事件 问题状态 最新活动: 2018-01-16 11:04 浏览: 1340 关注: 2 人 Monica • 2018-01-16 11:20 是的

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

309. 如何监听list列表里面item单元的位置变化和索引? [ 55%]

...个跟我问的完全不是一回事啊,你这个是监听item里元素click事件,而我这个是滚动相关的。进入白色遮罩区域产生缩放、不知道怎么实现

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

310. 怎么给button绑定一个事件,比如console.log一段话 [ 55%]

... 0 分享 微博 QZONE 微信 LT 赞同来自: var btn:Button;btn.on(Event.CLICK, this, onClick); private function onClick():void { console.log(); } 基本就是这个套路加响应事件=。= 官方demo含糊不清的看得累 2018-07-18 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回...

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