跳到主要内容

on

关注指定事件

声明

int on(string event, function func)

参数

参数名描述
event指定事件
func触发函数

返回值

事件响应id

使用方式

返回文档