大约有 20 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0026 秒)
...ar asst2 = state2.addScript(AnimatorStateScriptTest); //给该脚本的text赋值(text由前面的代码创建) asst2.text = text; //给动画添加动画状态 this.animator.addState(state2); ``` 来看下效果: (图1)
来源: Laya2.0_文档 发布时间: 20210715
...ar asst2 = state2.addScript(AnimatorStateScriptTest); //给该脚本的text赋值(text由前面的代码创建) asst2.text = text; //给动画添加动画状态 this.animator.addState(state2); ``` 来看下效果: (图1)
来源: Laya2.0_文档 发布时间: 20210715
...riptTest = state2.addScript(AnimatorStateScriptTest); //给该脚本的text赋值(text由前面的代码创建) asst2.text = text; //给动画添加动画状态 animator.addState(state2); ``` 来看下效果: (图1)
来源: Laya2.0_文档 发布时间: 20210714
...e.bgColor = "#232628"; var txt: Text = new Text(); //给文本的text属性赋值 txt.text = "hello_world"; txt.color = "#ffffff"; Laya.stage.addChild(txt); } } } new laya.HelloLayabox(); ``` 这个时候我们就可以看到txt已经添加到舞台上了,显示了txt中白色的hello_world。 接...
来源: Laya2.0_文档 发布时间: 20210715
...ng` - `FormData` - `null` #### setRequestHeader() 给指定的HTTP请求头赋值.在这之前,你必须确认已经调用 [`open()`](https://developer.mozilla.org/zh-CN/docs/Web/API/XMLHttpRequest#open) 方法打开了一个url. ### 事件 基本的事件大致有如下几种: - `onloadstart` - `...
来源: Laya2.0_文档 发布时间: 20210714
...ng` - `FormData` - `null` #### setRequestHeader() 给指定的HTTP请求头赋值.在这之前,你必须确认已经调用 [`open()`](https://developer.mozilla.org/zh-CN/docs/Web/API/XMLHttpRequest#open) 方法打开了一个url. ### 事件 基本的事件大致有如下几种: - `onloadstart` - `...
来源: Laya2.0_文档 发布时间: 20210715
...ng` - `FormData` - `null` #### setRequestHeader() 给指定的HTTP请求头赋值.在这之前,你必须确认已经调用 [`open()`](https://developer.mozilla.org/zh-CN/docs/Web/API/XMLHttpRequest#open) 方法打开了一个url. ### 事件 基本的事件大致有如下几种: - `onloadstart`...
来源: Laya2.0_文档 发布时间: 20210715
...os(200,200); Laya.stage.addChild(_lab); //给脚本的加强表现用方法赋值 _script.showMsgFunc = function () { this.text = "ShowMsg"; this.color = "red"; }.bind(_lab); })); ``` 最后了来看下效果,如图2。 (图2)
来源: Laya2.0_文档 发布时间: 20210715
...os(200,200); Laya.stage.addChild(_lab); //给脚本的加强表现用方法赋值 _script.showMsgFunc = function () { this.text = "ShowMsg"; this.color = "red"; }.bind(_lab); })); ``` 最后了来看下效果,如图2。 (图2)
来源: Laya2.0_文档 发布时间: 20210715
...os(200,200); Laya.stage.addChild(_lab); //给脚本的加强表现用方法赋值 _script.showMsgFunc = function ():void { text = "ShowMsg"; color = "red"; }.bind(_lab); })); ``` 最后了来看下效果,如图2。 (图2)
来源: Laya2.0_文档 发布时间: 20210715