Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
https://github.com/ajaxorg/ace/wiki/Embedding---API
editor.session.on('change', callback);
是您如何将事件绑定到“更改”。但是我该如何解绑呢?
用于removeListener删除特定回调。
removeListener
editor.session.removeListener('change', callback);
或更短的版本
editor.session.off('change', callback);
用于removeAllListeners删除所有回调。
removeAllListeners
editor.session.removeAllListeners('change');