mirror of
https://github.com/KazooTTT/kazoottt-blog-v2.git
synced 2025-06-24 03:01:30 +08:00
Update docs and sort content
This commit is contained in:
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: node | path模块相关操作
|
title: node | path模块相关操作
|
||||||
subtitle: 记录一些常用用法和区别,以及犯的错。
|
description: >-
|
||||||
|
本文介绍了Node.js中path模块的常用操作,包括__dirname与process.cwd()的区别,以及path.join()和path.resolve()的差异。特别指出,__dirname和process.cwd()在使用时需注意其返回的路径差异,以免导致静态资源加载失败。同时,path.join()用于连接路径,而path.resolve()则解析为绝对路径。这些知识点对于正确配置和处理文件路径至关重要。
|
||||||
date: 2022-10-24T00:00:00.000Z
|
date: 2022-10-24T00:00:00.000Z
|
||||||
author: KazooTTT
|
author: KazooTTT
|
||||||
tags:
|
tags:
|
||||||
@ -9,12 +10,10 @@ tags:
|
|||||||
- node
|
- node
|
||||||
slug: node-path-module-related-operations
|
slug: node-path-module-related-operations
|
||||||
published: true
|
published: true
|
||||||
description: >-
|
|
||||||
本文介绍了Node.js中path模块的常用操作,包括__dirname与process.cwd()的区别,以及path.join()和path.resolve()的差异。特别指出,__dirname和process.cwd()在使用时需注意其返回的路径差异,以免导致静态资源加载失败。同时,path.join()用于连接路径,而path.resolve()则解析为绝对路径。这些知识点对于正确配置和处理文件路径至关重要。
|
|
||||||
category: 前端
|
category: 前端
|
||||||
toAstro: true
|
toAstro: true
|
||||||
date_created: 2025-01-04T03:44:53.000Z
|
date_created: 2025-01-04T03:44:53.000Z
|
||||||
date_modified: 2025-02-07T03:25:34.000Z
|
date_modified: 2025-02-10T03:08:58.000Z
|
||||||
---
|
---
|
||||||
|
|
||||||
# Path 相关操作
|
# Path 相关操作
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
date_created: 2025-02-09T08:34:48.000Z
|
date_created: 2025-02-09T08:34:48.000Z
|
||||||
date_modified: 2025-02-09T11:11:09.000Z
|
date_modified: 2025-02-10T03:08:27.000Z
|
||||||
title: 不引入astro wiki plugin实现链接跳转的思路
|
title: 不引入astro wiki plugin实现链接跳转的思路
|
||||||
date: 2025-02-09T00:00:00.000Z
|
date: 2025-02-09T00:00:00.000Z
|
||||||
author: KazooTTT
|
author: KazooTTT
|
||||||
@ -13,7 +13,7 @@ tags:
|
|||||||
- remark
|
- remark
|
||||||
finished: true
|
finished: true
|
||||||
published: true
|
published: true
|
||||||
category: qianduan
|
category: 前端
|
||||||
slug: redirect-links-without-astro-wiki-plugin
|
slug: redirect-links-without-astro-wiki-plugin
|
||||||
description: >-
|
description: >-
|
||||||
在 Obsidian 中,Wiki 语法 ([[某个笔记]]) 使用频率较高,但 Astro 默认不支持。由于现有 remark
|
在 Obsidian 中,Wiki 语法 ([[某个笔记]]) 使用频率较高,但 Astro 默认不支持。由于现有 remark
|
||||||
|
Reference in New Issue
Block a user