📌  相关文章
📜  节点文件更改事件监听器 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:32.095000             🧑  作者: Mango

代码示例1
fs.watch('foo', function (event, filename) {
  if (event == 'change') {
    // Load file content
    // Compare to one previously loaded
    // actualContent = newContent
  }
});