node模塊總結(初步)

node模塊總結 內置模塊: npm安裝的模塊 內置模塊: 一: let fs=require(‘fs’) File System 二: let path=require(‘path’) 獲取文件路徑 path.parse() 方法返回一個對象,其屬性表示該對象的重要元素path path.format() 方法從對象返回路徑字符串。 path.join() 方法path使用特定於平臺的分隔符作爲
相關文章
相關標籤/搜索