大约有 29 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0087 秒)
...问题 <font color="#50d337"><a name='keyword' href='#javascript' onClick='this.pic()'>恶魔</a><a name='keyword' href='#javascript' onClick='this.pic()'><font color="#65e2ff">力量</font></a>、<a name='keyword' href='#javascript' onClick='this.pic()'&...
来源: Laya_社区 发布时间: 20180206
...生效 laya中代码:export default class Test { public static onClick():void{ alert("123456"); } public static onClick1():void{ } } 原生中代码:ConchJNI.RunJS("Test.onClick()"); 原生中报错:ReferenceError: Test is not defined 附...
来源: Laya_社区 发布时间: 20190313
...kin="logo.png"; Laya.stage.addChild(image); Laya.stage.on(Event.CLICK,this,onClick); } private function onClick():void { image.skin="bg.jpg"; } } }方法2:使用graphics.drawTexture的方式】 package { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.reso...
来源: Laya_社区 发布时间: 20170628
..."background.jpg"); Laya.stage.addChild(sp); Laya.stage.on(Event.CLICK,this,onClick); function onClick():void { // TODO Auto Generated method stub Laya.stage.off(Event.CLICK,this,onClick); Laya.stage.removeChild(sp); Loader.clearRes("background.jpg"); sp.destroy(); } } } } 2016-09-05 0 0 分享 微...
来源: Laya_社区 发布时间: 20160905
...Once=this.getChildByName("btnOnce"); btnOnce.on(Laya.Event.CLICK,this,this.onClick); } onClick(e){ this.removeSelf(); let gameScene=new GameScene(); Laya.stage.addChild(gameScene); } } 求大佬教学 2019-09-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...
来源: Laya_社区 发布时间: 20190903
...g = new Sprite(); stage.addChild(bg); bg.texture = e; bg.on("click", this, onClick); var guideContainer = new Sprite(); stage.addChild(guideContainer); guideContainer.mouseEnabled = true; guideContainer.cacheAs = "bitmap"; var hitArea = new HitArea(); hitArea.hit.drawRect(0, 0, width, height, "#0000...
来源: Laya_社区 发布时间: 20171031
... 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
...(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