大约有 1,162 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0072 秒)
Laya_社区(657) Laya_示例(157) Laya2.0_文档(129) Laya2.0_示例(116) Laya3.0_api(72) Laya3.0_文档(11) laya_api(11) Laya2.0_api(9)
...s/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { Laya.loader.load("res/comp/dian.part", Handler.create(this, this.onPartLoaded)); } function onPartLoaded(data: any) { let part = new Laya.Particle2D(data); part.emitter.start();...
来源: Laya_社区 发布时间: 20170803
...ss with type parameter Constructor Method Accessor Object literal Variable Function Type alias Inherited property Inherited method Inherited accessor Enumeration Interface
来源: Laya3.0_api 发布时间: 20231115
....stage.bgColor = "#efefef"; Text_InputSingleline(); Text_InputMultiline(); function Text_InputSingleline(){ var textInput = new Laya.TextInput("单行输入");//创建一个 TextInput 类的实例对象 textInput 。 textInput.wordWrap = true;//设置 textInput 的文本自动换行。 textInput.fon...
来源: Laya2.0_文档 发布时间: 20210714
... ```javascript var http = require("http"); var sever = http.createServer(function(req,res){ res.end("LayaSample.onComplete()"); }); sever.listen(9090) ``` ```javascript res.end("LayaSample.onComplete()"); ``` 这句话的意思是服务器回传给客户端LayaSample.onComplete()并且执行这个...
来源: Laya2.0_文档 发布时间: 20210714
...JS语言开发却可以加载 按照 技术文档里的事例: public function LayaSample() { //初始化引擎 Laya.init(1136, 640); var sp:Sprite = new Sprite(); var xhr:HttpRequest = new HttpRequest(); xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr....
来源: Laya_社区 发布时间: 20171011
...nts' of undefined TypeError: Cannot read property 'events' of undefined at Function.EventDispatcher.__init$ (http://127.0.0.1:35024/game/code.js:634:29) at http://127.0.0.1:35024/game/code.js:14:71 at Array.forEach (<anonymous>) at Object.__init (http://127.0.0.1:35024/game/code.js:14:36) at h...
来源: Laya_社区 发布时间: 20180801
...ipt" src="laya.webgl.js"></script> <script> window.onload = function (){ document.documentElement.style.overflow='hidden'; Laya.init(1280,720,Laya.WebGL); Laya.stage.alignH = "center"; Laya.stage.alignV = "middle"; Laya.stage.scaleMode = "showall"; Laya.stage.screenMode = "horizo...
来源: Laya_社区 发布时间: 20180709
...utils.Handler; public class LayaSample { private var rule_ct; public function LayaSample() { Laya.init(640, 1136, WebGL); Laya.stage.bgColor = "#CCBBAA"; var panel = new Panel(); Laya.stage.addChild(panel); panel.size(460, 704); rule_ct = new Sprite(); Laya.stage.addChild(rule_ct...
来源: Laya_社区 发布时间: 20170215
...码:** ```javascript // 这段代码需要在setupDemo之前执行。 (function() { // 项渲染器 var Box = Laya.Box; var Image = Laya.Image; var WID = 373, HEI = 85; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = fu...
来源: Laya2.0_文档 发布时间: 20210714
... private var box:Sprite; public function LayaAirDemo() { Laya.init(1200, 800); Laya.stage.bgColor = "#efefef"; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = St...
来源: Laya_社区 发布时间: 20161122