
- Node.js 教程
- Node.js - 首頁
- Node.js - 簡介
- Node.js - 環境搭建
- Node.js - 第一個應用程式
- Node.js - REPL 終端
- Node.js - 命令列選項
- Node.js - 包管理器 (NPM)
- Node.js - 回撥函式概念
- Node.js - 上傳檔案
- Node.js - 傳送郵件
- Node.js - 事件
- Node.js - 事件迴圈
- Node.js - 事件發射器
- Node.js - 偵錯程式
- Node.js - 全域性物件
- Node.js - 控制檯
- Node.js - 程序
- Node.js - 應用程式擴充套件
- Node.js - 打包
- Node.js - Express 框架
- Node.js - RESTFul API
- Node.js - 緩衝區
- Node.js - 流
- Node.js - 檔案系統
- Node.js MySQL
- Node.js - MySQL 入門
- Node.js - MySQL 建立資料庫
- Node.js - MySQL 建立表
- Node.js - MySQL 插入資料
- Node.js - MySQL 從表中選擇資料
- Node.js - MySQL Where 條件
- Node.js - MySQL 排序
- Node.js - MySQL 刪除資料
- Node.js - MySQL 更新資料
- Node.js - MySQL 聯接
- Node.js MongoDB
- Node.js - MongoDB 入門
- Node.js - MongoDB 建立資料庫
- Node.js - MongoDB 建立集合
- Node.js - MongoDB 插入資料
- Node.js - MongoDB 查詢資料
- Node.js - MongoDB 查詢
- Node.js - MongoDB 排序
- Node.js - MongoDB 刪除資料
- Node.js - MongoDB 更新資料
- Node.js - MongoDB 限制
- Node.js - MongoDB 聯接
- Node.js 模組
- Node.js - 模組
- Node.js - 內建模組
- Node.js - 實用程式模組
- Node.js - Web 模組
- Node.js 有用資源
- Node.js - 快速指南
- Node.js - 有用資源
- Node.js - 討論
Node.js - 路徑模組
Node.js 的Path 模組提供用於處理檔案和目錄路徑的實用程式。根據作業系統型別 - POSIX 或 WINDOWS,Path 模組中提供的方法可能會產生不同的結果。
方法列表
以下是 Path 模組中提供的方法列表 -
序號 | 模組及描述 |
---|---|
1 |
此函式允許您檢索指定路徑的最後一部分。 |
2 |
這是一個特定於平臺的屬性,它表示當前作業系統中名為PATH的環境變數中用於分隔檔案路徑的分隔符(分隔符)。 |
3 |
此方法用於檢索指定路徑的父目錄。 |
4 |
用於獲取給定檔案的副檔名,基於路徑中 (.) 點字元的最後一次出現。 |
5 |
此方法接受一個表示路徑的物件,並以字串格式返回給定路徑。 |
6 |
它將返回一個布林值,用於確定給定路徑是否為絕對路徑。 |
7 |
用於使用平臺分隔符將所有給定的字串路徑段連線在一起。 |
8 |
它用於規範化給定的路徑。 |
9 |
它返回一個物件,其屬性表示路徑的重要元素。 |
10 |
它用於根據當前工作目錄從一個路徑到另一個路徑檢索相對路徑。 |
11 |
它用於將一系列路徑段或路徑校正為絕對路徑。 |
12 |
它為給定路徑返回一個等效的名稱空間字首路徑。 |
廣告