node26-系统模块path路径操作_前端

 

node26-系统模块path路径操作_前端_02

 

//导入path模块
const path = require('path');
//路径拼接
const finaPath = path.join('public', 'uploads', 'avater');
console.log(finaPath);

node26-系统模块path路径操作_前端_03