笔记应用对当前打开的笔记进行操作时,修改通常先写入内存缓存,并不会立刻落盘到实际文件。 如果你在未保存的情况下调用文件相关接口(例如Documentation Index
Fetch the complete documentation index at: https://docs.supernote.com/llms.txt
Use this file to discover all available pages before exploring further.
replaceElements、
insertElements、
modifyElements 等),
可能导致数据状态不一致。建议先调用 saveCurrentNote 将缓存数据保存到实际文件,再进行文件级读写操作。
APIResponse<boolean>:result === true表示保存笔记文件成功