跳到主要内容

once

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

声明

int once(string event, function func)

参数

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

返回值

使用方式

返回文档