大约有 230 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0094 秒)
...动 2. list item里的button图片显示不出来 item代码如下: (function (_super){ function MarketItem() { MarketItem.__super.call(this); this.size(312, 462); // {id:1,name:"10金豆-测试",price:0.01,title:"10金豆-测试",desc:"测试",balance:10,gift:0,imgPath:"res\\common\\BalanceSel...
来源: Laya_社区 发布时间: 20170422
...1-07 0 0 分享 微博 QZONE 微信 apeCom 赞同来自: var Loading_fly = function (_super) { function Loading_fly() { Loading_fly.super(this); this.onPlay(); } Laya.class(Loading_fly, "Loading_fly", _super) var _proto = Loading_fly.prototype; _proto.onPlay = function () { UIConfig.popupBgAlpha = 0...
来源: Laya_社区 发布时间: 20171107
...为子类 ... ... var tipView = new TipsView(); this.addChild(tipView); function enterNextScene() { } ... ... //这个是TipsView.js类,我想在这个类里调用上面那个父类里enterNextScene的方法,如何获取到上面那个父类呢? var TipsView = (function (_super){ fu...
来源: Laya_社区 发布时间: 20171017
...制一个自适应得圆角矩形框,失败了,求解惑 var login = (function(_super){ function login(){ login.super(this); var stageWidth = Laya.stage.width; var stageHeight = Laya.stage.height; console.log(stageWidth*0.05+":"+stageHeight); var path = [ ["moveTo",stageWidth*0.05,0], ["actTo",s...
来源: Laya_社区 发布时间: 20170806
...态加载多个image,并为每个image添加监听事件? var Index=(function(_super){ function Index(){ Index.super(this); this.data = ["1tong","2tong","3tong","4tong","5tong","6tong","7tong","8tong","9tong","1tiao","2tiao","3tiao","4tiao","5tiao"]; var _dataSource_=[]; for(var i = 0;i<this....
来源: Laya_社区 发布时间: 20170914
...享 微博 QZONE 微信 w1114367261 赞同来自: * @example * (function (_super){ * function Item(){ * Item.__super.call(this);//初始化父类 * this.graphics.drawRect(0, 0, 100, 20, "#ff0000"); * var label = new ...
来源: Laya_社区 发布时间: 20180426
...een; public class MyBox extends Sprite { private var _shape:Sprite; public function MyBox() { super(); graphics.drawRect(0,0,200,200,"#00ff00"); _shape=new Sprite(); _shape.graphics.drawCircle(0,0,20,"#ff0000"); addChild(_shape); //加上这句正常,反之则异常 //_shape.cacheAsBitmap=true; po...
来源: Laya_社区 发布时间: 20170124
js继承模式 new function() { var className = 'BackGround'; window[className] = (function() { Laya.class(Class, className, Laya.Sprite); function Class() { Class.super(this); // this定义.. this.init(); } Class.prototype.init = function() { console.log(this); }; return Class; })(); } var _...
来源: Laya_社区 发布时间: 20170619
...的方法,现在是js文件中方法写完了,我在ts中使用declare function clickGallery();声明了clickGallery方法,然后我直接在方法里调用clickGallery();的时候报方法未定义,不知道什么原因???? 2018-01-03 添加评论 免费帖 --> 分享 微博 QZO...
来源: Laya_社区 发布时间: 20180103
...查看具体报错的功能。 ERROR:invalid property id interface:function(name,_super){ Laya.__package(name,{}); var ins=Laya.__internals; var a=ins[name]=ins[name] || {self:name}; if(_super) { var supers=_super.split(','); a.extend=[]; for(var i=0;i<supers.length;i++){ var nm=supers[i]...
来源: Laya_社区 发布时间: 20180806