blockly > FieldImage > setOnClickHandler
FieldImage.setOnClickHandler() 方法
设置点击此图片时调用的函数。
Signature:
setOnClickHandler(func: ((p1: FieldImage) => void) | null): void;
参数
参数 | 类型 | 说明 |
---|---|---|
func | ((p1: FieldImage) => void) | null | 点击图片时调用的函数,如果删除,则为 null。 |
返回:
void