Update docs and sort content

This commit is contained in:
github-actions[bot]
2025-03-04 11:07:00 +00:00
parent ca268a37dc
commit f37e2a10bb
161 changed files with 1359 additions and 914 deletions

View File

@ -1,19 +1,23 @@
---
toAstro: true
astroType: null
published: true
toWexin: null
toJuejin: null
toZhihu: null
title: node path模块相关操作
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
author: KazooTTT
tags:
- path
- 前端
- node
- path
slug: node-path-module-related-operations
published: true
category: 前端
toAstro: true
date_created: 2025-01-04T03:44:53.000Z
date_modified: 2025-02-19T17:54:55.000Z
date_created: 20250104
date_modified: 20250304
---
# Path 相关操作