大约有 454 项符合查询结果, 库内数据总量为 30,936 项。 (搜索耗时: 0.0063 秒)
...、陀螺仪 `Gyroscope`通过`change`事件对设备方向改变进行监听。该事件有两个回调参数: - `absolute` —— 如果设备提供的方位是基于设备坐标系统和地球坐标系统间的差距,则是`true`;如果设备无法检测到地球坐标系统,`absolute...
来源: Laya2.0_文档 发布时间: 20210714
...继承关系 //初始化函数 LoginView.prototype.init = function () { //监听登录按钮按下事件 this.login.on(Laya.Event.CLICK,this,this.onButtonLogin); //忘记密码 this.wjmm.on(Laya.Event.CLICK,this,this.onLableWjmm); } //登录按钮响应函数 LoginView.prototype.onButtonLogin = func...
来源: Laya_社区 发布时间: 20170215
... }); wss.on("connection", (ws) => { console.log("Client connected"); // 监听消息 ws.on("message", (data) => { // 将接收到的二进制数据buffer解码(反序列化)为ChatMessage对象 const receivedMessage = ChatMessage.decode(new Uint8Array(data)); console.log("Received ChatMessage ...
来源: Laya3.0_文档 发布时间: 20250103
...mouseEnabled : Boolean 是否接受鼠标事件。 默认为false,如果监听鼠标事件,则会自动设置本对象及父节点的属性 mouseEnable 的值都为 true(如果父节点手动设置为false,则不会更改)。 Sprite mouseThrough : Boolean = false 鼠标事件与此对象...
来源: Laya2.0_api 发布时间: 20190513
... in laya/events/EventDispatcher.ts:146 移除caller为target的所有事件监听 Parameters caller: any caller对象 Returns EventDispatcher on on(type: string, listener: Function): EventDispatcher on(type: string, caller: any, listener: Function, args?: any[]): EventDispatcher Inherited from Event...
来源: Laya3.0_api 发布时间: 20231102
...、陀螺仪 `Gyroscope`通过`change`事件对设备方向改变进行监听。该事件有两个回调参数: - `absolute` —— 如果设备提供的方位是基于设备坐标系统和地球坐标系统间的差距,则是`true`;如果设备无法检测到地球坐标系统,`absolute...
来源: Laya2.0_文档 发布时间: 20210714
...mouseEnabled : Boolean 是否接受鼠标事件。 默认为false,如果监听鼠标事件,则会自动设置本对象及父节点的属性 mouseEnable 的值都为 true(如果父节点手动设置为false,则不会更改)。 Sprite mouseThrough : Boolean = false 鼠标事件与此对象...
来源: Laya2.0_api 发布时间: 20190513
...mouseEnabled : Boolean 是否接受鼠标事件。 默认为false,如果监听鼠标事件,则会自动设置本对象及父节点的属性 mouseEnable 的值都为 true(如果父节点手动设置为false,则不会更改)。 Sprite mouseThrough : Boolean = false 鼠标事件与此对象...
来源: Laya2.0_api 发布时间: 20190513
...: //在CameraControll.ts类下的onStart()方法中,加入鼠标按下监听 //Laya.stage.on(Laya.Event.MOUSE_DOWN,this, this.onMouseDown); //鼠标点下事件,处理发射射线,检测碰撞物体 onMouseDown(e: Laya.Event) { let point = new Laya.Vector2(); point.x = Laya.stage.mouseX; poi...
来源: Laya3.0_文档 发布时间: 20240910
... in laya/events/EventDispatcher.ts:146 移除caller为target的所有事件监听 Parameters caller: any caller对象 Returns EventDispatcher on on(type: string, listener: Function): EventDispatcher on(type: string, caller: any, listener: Function, args?: any[]): EventDispatcher Inherited from Event...
来源: Laya3.0_api 发布时间: 20231115