跳到主要内容

on_message

响应指定名称的网络消息

声明

void on_message(string msg, function func)

参数

参数名描述
msg消息名称
func消息处理函数

返回值

使用方式

返回文档