大约有 39 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0032 秒)
... 15:26 浏览: 2455 关注: 3 人 soren • 2018-09-14 15:35 哦 那改成 onclick 看下 click 是jQuery的写法 喵了个咪 • 2018-09-14 15:52 onclick是设置点击调用的函数,现在问题是代码里click已经触发了点击(点击函数执行了),但是不会弹出选择框 喵...
来源: Laya_社区 发布时间: 20180914
...Left.on(Laya.Event.CLICK,null,function(){ //TO GamePage2 console.log("left onclick"); Laya.stage.addChild(new GameView); }); //分享快乐 this.StartRight.on(Laya.Event.CLICK,null,function(){ //超链接 onLink(href); }); //天猫Logo this.img_TianMao.on(Laya.Event.CLICK,null,function(){ //超...
来源: Laya_社区 发布时间: 20180810
... index++) { this.createButton(this.btnArr[index],this.nameArr[index],this._onclick,index); } this._canvas = window.document.getElementById("layaCanvas") as HTMLCanvasElement; this.aimSp = new Sprite(); this.aimSp.size(Browser.clientWidth/2,Browser.clientHeight/2); Laya.stage.addChild(this.aimSp); th...
来源: Laya2.0_示例 发布时间: 20251130
...(btnAdd); btnAdd.x=550; btnAdd.label='ADD1000'; btnAdd.on(Event.CLICK,this,onClick,[sp,panel]); } private function onClick(sp:Sprite,panel:Panel):void { trace('Add1000'); for(var i:int=0;i<1000;i++) { var button:Button=new Button('button-4.png'); button.label='button:'+i; sp.addChild(button); but...
来源: Laya_社区 发布时间: 20170601
... blue.size(500, 500); blue.on("click", this, onClick); Laya.stage.addChild(blue); //增加一个容器 box = new Sprite(); //设置容器为画布缓存 ...
来源: Laya_社区 发布时间: 20161122
...o:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("https://www.layaair.com/3.x/de ... ot%3B,1); this.htmlvideo.video.addEventListener("loadedmetadata",()=...
来源: Laya_社区 发布时间: 20240305
...接 提交 2 个回复 Laya_Aaron 赞同来自: on(Event.MOUSE_DOWN,this,onClick); 试一下吧 onclick 函数里再打印log 2017-12-13 0 10 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这个进度条 var 为pro 另外一张图的类继承了之前页面发布生成的类,直接用this....
来源: Laya_社区 发布时间: 20171213
....btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * 创建btn */ private createBtn(skin: string): Laya.Button { let button = new Laya.Button(skin, '上传文件'); button.labelSize = 12; button.labelColors = '#000000,#000000,#000000'; Laya.stage.addChild...
来源: Laya_社区 发布时间: 20170511
...o:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("https://www.layaair.com/3.x/de ... ot%3B,1); this.htmlvideo.video.addEventListener("loadedmetadata",()=...
来源: Laya_社区 发布时间: 20240305
...函数怎么获得场景元素 var 定义的场景元素onEnable(),onClick()这种可以直接获得元素 自定义的方法如 start01()这种就会报错,请问该如何解决? 2019-09-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...
来源: Laya_社区 发布时间: 20190916