blockly > dialog > setAlert

dialog.setAlert() 函数

设置在调用 Blockly.dialog.alert() 时要运行的函数。

Signature:

export declare function setAlert(alertFunction?: (message: string, callback?: () => void) => void): void;

参数

参数 类型 说明
alertFunction (message: string, callback?: () => void) => void (可选)要运行的函数,或为 undefined 以恢复默认实现。

返回

void