var path = require('path'); var x = path.join('Users', 'Refsnes', '..', 'demo_path.js'); console.log(x);
用户\demo_path.js