跳至主要內容

芒果凍布丁2026/4/18小於 1 分鐘

watchContentChanges

監視檔案內容的變化。

語法
watchContentChanges(path: string, threshold: number): void
範例
// 這將監視 file.txt 的內容變化,當變化超過閾值時觸發事件
FilesJS.watchContentChanges('file.txt', 10);
最近更新:
貢獻者: EvanHsieh0415