Home  >  Q&A  >  body text

node.js - node如何获取当前文件的上级目录路径?

阿神阿神2647 days ago821

reply all(1)I'll reply

  • 迷茫

    迷茫2017-04-17 14:32:16

    var path = require('path')
    
    path.resolve(__dirname, '..')

    reply
    0
  • Cancelreply