Score.onChange 方法

设置在得分发生变化时的处理程序。

签名

onChange(handler: (gameId: string, score: number) => void): void;

参数

名称 类型 可选 说明
handler (gameId: string, score: number) => void

返回结果

void