跳到主要内容

on

关注指定事件

声明

void on(string event, function fn)

参数

参数名描述
event事件名
fn方法

返回值

使用方式

返回文档