大约有 238 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0064 秒)
...lickHandler Defined in laya/ui/Button.ts:628 对象的点击事件处理器函数(无默认参数)。 implements Returns Handler Inherited from Button.clickHandler Defined in laya/ui/Button.ts:632 对象的点击事件处理器函数(无默认参数)。 implements Parameters value: Handler R...
来源: Laya3.0_api 发布时间: 20231115
...te(this,onClickButton,[button],false);//设置 button 的点击事件处理函数。 Laya.stage.addChild(button);//将此 button 对象添加到显示列表。 } function onClickButton(button) { console.log("按钮被点击了。",button); } example import Button=laya.ui.Button; import Handler=laya....
来源: Laya3.0_api 发布时间: 20231115
...启自定义渲染,只有开启自定义渲染,才能使用customRender函数渲染。 Parameters b: boolean Returns void destroyed get destroyed(): boolean Inherited from Node.destroyed Defined in laya/display/Node.ts:92 是否已经销毁。对象销毁后不能再使用。 Returns boolean dis...
来源: Laya3.0_api 发布时间: 20231115
...lickHandler Defined in laya/ui/Button.ts:628 对象的点击事件处理器函数(无默认参数)。 implements Returns Handler Inherited from Button.clickHandler Defined in laya/ui/Button.ts:632 对象的点击事件处理器函数(无默认参数)。 implements Parameters value: Handler R...
来源: Laya3.0_api 发布时间: 20231115
...面详细介绍它的使用方法。 2.1 建立连接的方式 2.1.1 构造函数传参 直接在构造时传入主机地址和端口,即刻尝试连接。 // 注意:host 参数不需要“ws://”前缀,默认就是ws let socket = new Laya.Socket("192.168.1.2", 8899); //如果需要wss安全...
来源: Laya3.0_文档 发布时间: 20251010
...启自定义渲染,只有开启自定义渲染,才能使用customRender函数渲染。 Parameters b: boolean Returns void dataSource get dataSource(): any set dataSource(value: any): void Inherited from UIComponent.dataSource Defined in laya/ui/UIComponent.ts:134 implements 数据赋值,通过...
来源: Laya3.0_api 发布时间: 20231115
...启自定义渲染,只有开启自定义渲染,才能使用customRender函数渲染。 Parameters b: boolean Returns void dataSource get dataSource(): any set dataSource(value: any): void Inherited from UIComponent.dataSource Defined in laya/ui/UIComponent.ts:134 implements 数据赋值,通过...
来源: Laya3.0_api 发布时间: 20231115
...学,因连续保存触发多次连续编译 * @ 监听生效后执行的函数 */ watch('src/**/*.*', {delay:1000}, compile); }); ``` > 了解更多gulp任务监听,可以查阅gulp官方文档: > > https://www.gulpjs.com.cn/docs/getting-started/watching-files/ 保存好`gulpfile.js`这个gulp...
来源: Laya2.0_文档 发布时间: 20210715