Skip to content
Draft
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# 笔记

自 2026-07-01 起,大部分内存来自 AI,需要甄别。

- [ ] 慢慢整理中,一些没必要的,可以用AI替代的笔记可以删除了。这里面除了 misc 文件夹,其他文件夹就不要新增内容了
11 changes: 0 additions & 11 deletions misc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -900,17 +900,6 @@ node:internal/modules/esm/load:209
Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'd:'
```

## 复习:ESM 中获取 `__dirname`

```js
import { fileURLToPath } from 'url';
import { dirname } from 'path';

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

console.log(__dirname)
```

## 在 word 中使用 vba 为指定命令分配快捷键

Expand Down
Loading