摘要: path模块 参考:http://nodejs.cn/api/path.html 1. path 模块提供了用于处理文件和目录的路径的实用工具 2. path 模块的默认操作因运行 Node.js 应用程序的操作系统而异。 3. 具体来说,当在 Windows 操作系统上运行时,path 模块将假定 阅读全文
posted @ 2021-11-18 16:31 CarreyB 阅读(21) 评论(0) 推荐(0) 编辑
摘要: OS模块 Node.js os 模块提供了一些基本的系统操作函数。 参考: http://nodejs.cn/api/path.html#windows-vs-posix 方法: // 1. 返回该操作系统的行尾标记 var out = os.EOL // 返回'\r\n' // 2. 返回为其编译 阅读全文
posted @ 2021-11-18 16:05 CarreyB 阅读(58) 评论(0) 推荐(0) 编辑