大约有 1,655 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0087 秒)
Laya_社区(676) Laya3.0_api(364) Laya2.0_api(194) laya_api(158) Laya2.0_文档(80) Laya3.0_文档(71) Laya_示例(58) Laya2.0_示例(54)
...博 QZONE 微信 アキラ。 赞同来自: 小丶kiss public close(type?:string, showEffect?:boolean):void{ if(type === "side"){ return; } super.close(type, showEffect) } 刚下载了楼上的zip。方法生效了。表示感谢。 把代码贴出来。免得别人再去下载了。 2018-11-29 1 ...
来源: Laya_社区 发布时间: 20180911
...例子: let color='#FFFFFF' 原生: color.substr(0,0) -> ''; String.prototype.substr = Laya.__substr : color.substr(0,0) -> '#FFFFFF' 2017-04-10 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 这个方法我们是通过laya.js.exe解决的,你看不到源代码,你可...
来源: Laya_社区 发布时间: 20170410
...5-22 21:30 message: 'Property 'CLICK' does not exist on type '{ new (type: string, eventInitDict?: EventInit): Event; prototype: Event; readonly AT_TARGET: num...'.' at: '20,39' source: 'ts' 不import , 直接用 Event.CLICK 也会报错
来源: Laya_社区 发布时间: 20180522
...: 请问一下,代码里面的地图数据是怎么得到的? var mapStr:String ="8,0,1,0,0,35,15,35,91,2287,0,1,1,12,0,1,1,21,0,2,1,4,0,3,1,4,0,2,1,19,0,19,1,17,0,22,1,12,0,23,1,12,0,23,1,10,0,25,1,10,0,25,1,9,0,26,1,10,0,25,1,10,0,15,1,1,0,7,1,12,0,15,1,2,0,5,1,13,0,10,1,1,0,4,1,5,0,1,1,14,0,9,1...
来源: Laya_社区 发布时间: 20161101
... [default = 302]; optional int64 packet_iiid = 3 [default = 302]; optional string packet_iidiid = 4; } 通过 ProtoBuf.load("protocol.proto", this.onLoaded); function onLoaded(err:any, root:any):void{ if (err) throw err; // Obtain message types var msgDefine:any = = root.lookup("protocols.packetc2g_...
来源: Laya_社区 发布时间: 20170914
...DK版本为1.7.17 以下为核心代码: function playAction(act:string):void { var animationclip:Laya.AnimationClip = this.animator.getClip(action); if(animationclip){ this.animator.play(act); } } 现象描述:角色正在挂机放技能打怪,当挂机...
来源: Laya_社区 发布时间: 20180828
...n(Event.CLICK, this, this.onDecreaseAlpha2); } private createButton(label: string): Sprite { var w: number = 300, h: number = 60; var button: Sprite = new Sprite(); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.size(w, h); button.graphics.fillText(label, w / 2, 17, "20px simHei", "#ffffff"...
来源: Laya_示例 发布时间: 20260303
...Apple 赞同来自: 可以给相关类类增加 function get thisClsName():string接口 然后相关类中实现一下,用字符串做标识 查询的时候用接口就可以取到 2018-04-04 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起...
来源: Laya_社区 发布时间: 20180404
... p.style.fontSize = 30; p.style.align = "center"; var html:String = "<span color='#ffffff'>居中测试文本</span>"; p.innerHTML = html; p.style.align是设置水平居中。 2017-02-21 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要...
来源: Laya_社区 发布时间: 20170221
...致无法写出 public function send(cmd:int , req:Object):void { var json:String = JSON.stringify(req); var data:ByteArray = new ByteArray(); data.writeUTFBytes(json); data.compress(); var obj:Object = {}; var headByte:ByteArray = new ByteArray(); writeHeader(obj, headByte); _socket.output.clear();...
来源: Laya_社区 发布时间: 20170710