blockly > comments > CommentView > addTextChangeListener
comments.CommentView.addTextChangeListener() 方法
註冊可監聽文字變更的回呼。
Signature:
addTextChangeListener(listener: (oldText: string, newText: string) => void): void;
參數
參數 | 類型 | 說明 |
---|---|---|
事件監聽器 | (oldText:string, newText: string) => void |
傳回:
void