nodejs 获取当前路径的方法 var path = require("path"); var url = path.resolve('./'); 转载于:https://www.cnblogs.com/benchan2015/p/5048855.html