app.js
path = require('path');
user = require('./routes/user')
app.post('/job', user.postarticle);
routers\user.js
exports.postarticle=function(req,res){
这里怎么用path ?
除了重新require一次path
app.js
path = require('path');
user = require('./routes/user')
app.post('/job', user.postarticle);
routers\user.js
exports.postarticle=function(req,res){
这里怎么用path ?
除了重新require一次path