跳到主要内容

once

关注一次指定事件(执行后删除)

声明

void once(string event, function fn)

参数

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

返回值

使用方式

返回文档